다음을 통해 공유


StatefulServiceDescription.MinReplicaSetSize Property

 

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

Gets or sets the minimum allowed replica set size for this service.

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

Syntax

public int MinReplicaSetSize { get; set; }

Property Value

Type: System.Int32

The minimum allowed replica set size for this service.

Remarks

Defines the minimum number of replicas that Service Fabric will keep in its view of the Replica Set for a given partition. For example, if the TargetReplicaSetSize is set to five (5) then normally (without failures) there will be five replicas in the view of the replica set. However this number will decrease during failures. The MinReplicaSetSize defines the minimum number of replicas in the view, so for example if the TargetReplicaSetSize is five and the MinReplicaSetSize is three, then even if there are three concurrent failures (resulting in only two remaining replicas running) will still have three replicas in its view of the replica set (two up and one down). Since uses majority quorum of the number of replicas maintained in this view, majority quorum of the MinReplicaSetSize is minimum level of reliability of any operation: in the prior example, with Target = 5 and Min = 3, with 3 concurrent failures, there are two remaining up replicas (and one down), and the majority quorum of 3 (the MinReplicaSetSize) is 2. This means that the primary will continue to be able to replicate operations AND that the remaining secondary replica MUST apply the operation in order for the replica set (partition) to make progress. If the total number of replicas drops below the majority quorum of the MinReplicaSetSize then further writes will be disallowed.

See Also

StatefulServiceDescription Class
System.Fabric.Description Namespace

Return to top