ReplicaRole Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Indicates the role of a stateful service replica.
public enum ReplicaRole
type ReplicaRole =
Public Enum ReplicaRole
- Inheritance
-
ReplicaRole
Fields
ActiveAuxiliary | 6 | TODO |
ActiveSecondary | 4 | Refers to a replica in the set that receives state updates from the Primary replica, applies them, and sends acknowledgements back. Secondary replicas must participate in the write quorum for a replica set. There can be multiple active Secondary replicas in a replica set at a time. The number of active Secondary replicas is configurable that the reliability subsystem should maintain. |
IdleAuxiliary | 5 | TODO |
IdleSecondary | 3 | Refers to a replica in the set that receives a state transfer from the Primary replica to prepare for becoming an active Secondary replica. There can be multiple Idle Secondary replicas in a replica set at a time. Idle Secondary replicas do not count as a part of a write quorum. |
None | 1 | Specifies that the replica has no responsibility in regard to the replica set. |
Primary | 2 | Refers to the replica in the set on which all read and write operations are complete in order to enforce strong consistency semantics. Read operations are handled directly by the Primary replica, while write operations must be acknowledged by a quorum of the replicas in the replica set. There can only be one Primary replica in a replica set at a time. |
PrimaryAuxiliary | 7 | TODO |
Unknown | 0 | Indicates the initial role that a replica is created in. |
Remarks
Service Fabric requires different behaviors from a service replica depending on what role it currently performs.
Applies to
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기