DCA · Question #87
Seven managers are in a swarm cluster. Is this how should they be distributed across three datacenters or availability zones? Solution: 3-2-2
The correct answer is A. Yes. A 3-2-2 distribution of seven Docker Swarm managers across three datacenters is an effective way to maintain quorum and high availability.
Question
Seven managers are in a swarm cluster. Is this how should they be distributed across three datacenters or availability zones? Solution: 3-2-2
Options
- AYes
- BNo
How the community answered
(25 responses)- A80% (20)
- B20% (5)
Why each option
A 3-2-2 distribution of seven Docker Swarm managers across three datacenters is an effective way to maintain quorum and high availability.
With seven Docker Swarm manager nodes, a Raft quorum requires at least four nodes to be available. A 3-2-2 distribution ensures that if any single datacenter fails (losing 3, 2, or 2 managers), the remaining managers (e.g., 2+2=4, or 3+2=5, or 3+3=6) will still meet or exceed the four-node quorum requirement, maintaining cluster operations.
This distribution strategy is effective because it ensures that losing any single datacenter still leaves enough managers to maintain the necessary Raft quorum of four nodes out of seven, thus providing fault tolerance.
Concept tested: Docker Swarm manager quorum distribution
Source: https://docs.docker.com/engine/swarm/admin_guide/#add-manager-nodes-for-high-availability
Topics
Community Discussion
No community discussion yet for this question.