Condividi tramite


StatefulServiceDescription.MinReplicaSetSize Property

Definition

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

public int MinReplicaSetSize { get; set; }
member this.MinReplicaSetSize : int with get, set
Public Property MinReplicaSetSize As Integer

Property Value

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, then normally (without failures) there will be five replicas in the view of the replica set. However, this number will decrease during failures. For example, if the TargetReplicaSetSize is five and the MinReplicaSetSize is three, then three concurrent failures will leave three replicas in the replica set's view (two up, one down). Service Fabric uses majority quorum on the number of replicas maintained in this view, which is two for this example. 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 to make progress. If the total number of replicas drops below the majority quorum of the MinReplicaSetSize, then further writes will be disallowed.

Applies to