共用方式為


NodeTypeHealthPolicyMap Class

Definition

Defines a map with max percentages unhealthy nodes for specific node types.

public sealed class NodeTypeHealthPolicyMap : System.Collections.Generic.Dictionary<string,byte>
type NodeTypeHealthPolicyMap = class
    inherit Dictionary<string, byte>
Public NotInheritable Class NodeTypeHealthPolicyMap
Inherits Dictionary(Of String, Byte)
Inheritance
NodeTypeHealthPolicyMap

Remarks

The node type health policy map can be used during cluster health evaluation to describe special node types. The node types included in the map are evaluated against the percentage included in the map, and also with the global MaxPercentUnhealthyNodes. The nodes of node types specified in the map are also counted against the global pool of nodes; they are independent checks

Constructors

NodeTypeHealthPolicyMap()

Instantiates an NodeTypeHealthPolicyMap class.

Methods

Add(String, Byte)

Adds an entry in the map for a specific node type, with max percent unhealthy nodes as value.

ToString()

Gets a string representation of the NodeTypeHealthPolicyMap.

Extension Methods

TryRemove<TKey,TValue>(Dictionary<TKey,TValue>, TKey, TValue)

Removes the value associated with specified key.

Applies to