Delen via


ServiceTypeHealthPolicy.MaxPercentUnhealthyReplicasPerPartition Property

Definition

Gets or sets the maximum allowed percentage of unhealthy replicas per partition.

public byte MaxPercentUnhealthyReplicasPerPartition { get; set; }
member this.MaxPercentUnhealthyReplicasPerPartition : byte with get, set
Public Property MaxPercentUnhealthyReplicasPerPartition As Byte

Property Value

Returns the maximum allowed percentage of unhealthy replicas per partition. Allowed values are Byte values from zero to 100.

Exceptions

The specified value was outside the range of integer values from zero to 100.

Remarks

The percentage represents the maximum tolerated percentage of replicas that can be unhealthy before the partition is considered in error. If the percentage is respected but there is at least one unhealthy replica, the health is evaluated as Warning. This is calculated by dividing the number of unhealthy replicas over the total number of replicas in the partition. The computation rounds up to tolerate one failure on small numbers of replicas. Default percentage: zero.

Applies to