DCA · Question #86
Seven managers are in a swarm cluster. Is this how should they be distributed across three datacenters or availability zones? Solution: 5-1-1
The correct answer is B. No. A 5-1-1 distribution of seven Docker Swarm managers across three datacenters is not optimal for high availability as it concentrates too many managers in a single datacenter.
Question
Seven managers are in a swarm cluster. Is this how should they be distributed across three datacenters or availability zones? Solution: 5-1-1
Options
- AYes
- BNo
How the community answered
(28 responses)- A14% (4)
- B86% (24)
Why each option
A 5-1-1 distribution of seven Docker Swarm managers across three datacenters is not optimal for high availability as it concentrates too many managers in a single datacenter.
Concentrating five managers in a single datacenter creates a significant single point of failure; if that datacenter fails, the cluster loses quorum with only two managers remaining, rendering it inoperable.
Docker Swarm manager nodes use a Raft quorum, requiring four nodes for seven managers. A 5-1-1 distribution concentrates five managers in one datacenter, meaning if that primary datacenter fails, the remaining two managers (1+1) are insufficient to maintain quorum, leading to a cluster outage.
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.