DCA · Question #69
Will this configuration achieve fault tolerance for managers in a swarm? Solution: an odd number of manager nodes, totaling more than two
The correct answer is A. Yes. An odd number of Docker Swarm manager nodes, totaling more than two, is essential for achieving fault tolerance and maintaining a Raft quorum.
Question
Will this configuration achieve fault tolerance for managers in a swarm? Solution: an odd number of manager nodes, totaling more than two
Options
- AYes
- BNo
How the community answered
(28 responses)- A86% (24)
- B14% (4)
Why each option
An odd number of Docker Swarm manager nodes, totaling more than two, is essential for achieving fault tolerance and maintaining a Raft quorum.
Docker Swarm manager nodes leverage the Raft consensus algorithm, which mandates a strict majority (quorum) of managers to be available for the swarm to remain operational and to elect a leader. An odd number of managers (e.g., 3, 5, 7) ensures that a quorum can always be formed even if some nodes fail, thereby providing robust fault tolerance against node outages.
Using an even number of managers, or too few, can lead to split-brain scenarios or situations where a majority cannot be unequivocally determined, making it harder to maintain a quorum and ensure fault tolerance.
Concept tested: Docker Swarm manager fault tolerance
Source: https://docs.docker.com/engine/swarm/admin_guide/#add-manager-nodes-for-fault-tolerance
Topics
Community Discussion
No community discussion yet for this question.