ClusterHealthPolicy.MaxPercentUnhealthyApplications Property

 

Applies To: Azure, Windows 10, Windows 8, Windows 8.1, Windows Server 2012 R2

Gets or sets the maximum allowed percentage of unhealthy applications.

Namespace:   System.Fabric.Health
Assembly:  System.Fabric (in System.Fabric.dll)

Syntax

public byte MaxPercentUnhealthyApplications { get; set; }

Property Value

Type: System.Byte

The maximum allowed percentage of unhealthy applications. Allowed values are integer values from zero to 100.

Exceptions

Exception Condition
ArgumentOutOfRangeException

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

Remarks

The percentage represents the maximum tolerated percentage of applications that can be unhealthy before the cluster is considered in error. If the percentage is respected but there is at least one unhealthy application, the health is evaluated as Warning. This is calculated by dividing the number of unhealthy applications over the total number of applications deployed in the cluster, excluding all applications of application types that are included in the ApplicationTypeHealthPolicyMap. The computation rounds up to tolerate one failure on small numbers of applications. Default percentage: zero.

See Also

ClusterHealthPolicy Class
System.Fabric.Health Namespace

Return to top