你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ClusterHealthPolicy 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ClusterHealthPolicy() |
初始化 ClusterHealthPolicy 类的新实例。 |
ClusterHealthPolicy(Nullable<Int32>, Nullable<Int32>, IDictionary<String,ApplicationHealthPolicy>) |
初始化 ClusterHealthPolicy 类的新实例。 |
ClusterHealthPolicy()
初始化 ClusterHealthPolicy 类的新实例。
public ClusterHealthPolicy ();
Public Sub New ()
适用于
ClusterHealthPolicy(Nullable<Int32>, Nullable<Int32>, IDictionary<String,ApplicationHealthPolicy>)
初始化 ClusterHealthPolicy 类的新实例。
public ClusterHealthPolicy (int? maxPercentUnhealthyNodes = default, int? maxPercentUnhealthyApplications = default, System.Collections.Generic.IDictionary<string,Microsoft.Azure.Management.ServiceFabric.Models.ApplicationHealthPolicy> applicationHealthPolicies = default);
new Microsoft.Azure.Management.ServiceFabric.Models.ClusterHealthPolicy : Nullable<int> * Nullable<int> * System.Collections.Generic.IDictionary<string, Microsoft.Azure.Management.ServiceFabric.Models.ApplicationHealthPolicy> -> Microsoft.Azure.Management.ServiceFabric.Models.ClusterHealthPolicy
Public Sub New (Optional maxPercentUnhealthyNodes As Nullable(Of Integer) = Nothing, Optional maxPercentUnhealthyApplications As Nullable(Of Integer) = Nothing, Optional applicationHealthPolicies As IDictionary(Of String, ApplicationHealthPolicy) = Nothing)
参数
报告错误之前允许的最大不正常节点百分比。 例如,若要允许 10% 的节点处于不正常状态,此值为 10。
The percentage represents the maximum tolerated percentage of nodes
that can be unhealthy before the cluster is considered in error.
If the percentage is respected but there is at least one unhealthy
node, the health is evaluated as Warning.
The percentage is calculated by dividing the number of unhealthy
nodes over the total number of nodes in the cluster.
The computation rounds up to tolerate one failure on small numbers
of nodes. Default percentage is zero.
In large clusters, some nodes will always be down or out for
repairs, so this percentage should be configured to tolerate that.
报告错误之前允许的最大不正常应用程序百分比。 例如,若要允许 10% 的应用程序处于不正常状态,此值为 10。
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 application instances in the cluster,
excluding 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 is zero.
- applicationHealthPolicies
- IDictionary<String,ApplicationHealthPolicy>
定义用于评估应用程序或其子实体之一的运行状况的应用程序运行状况策略映射。