Service type health policy

Service type health policy defines the rules to aggregate the health status of services deployed in a cluster on to the service health entity. This policy can be configured in the application manifest file. The following is an example:

        <Policies>
<HealthPolicy ConsiderWarningAsError="true"
MaxPercentUnhealthyDeployedApplications="20">
<DefaultServiceTypeHealthPolicy
MaxPercentUnhealthyServices="0"
MaxPercentUnhealthyPartitionsPerService="10"
MaxPercentUnhealthyReplicasPerPartition="0"/>
<ServiceTypeHealthPolicy
ServiceTypeName="FrontEndServiceType"
MaxPercentUnhealthyServices="0"
MaxPercentUnhealthyPartitionsPerService="20"
MaxPercentUnhealthyReplicasPerPartition="0"/>
<ServiceTypeHealthPolicy
ServiceTypeName="BackEndServiceType"
MaxPercentUnhealthyServices="20"
MaxPercentUnhealthyPartitionsPerService="0"
MaxPercentUnhealthyReplicasPerPartition="0">
</ServiceTypeHealthPolicy>
</HealthPolicy>
</Policies>

This policy uses the following parameters to specify the tolerance levels:

  • MaxPercentUnhealthyPartitionsPerService: The threshold for unhealthy partitions before marking a service entity as unhealthy
  • MaxPercentUnhealthyReplicasPerPartition: The threshold for unhealthy replicas before marking a partition entity as unhealthy
  • MaxPercentUnhealthyServices: The threshold for unhealthy services before marking an application entity as unhealthy

The default value for all the three preceding listed parameters is zero.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.225.175.151