DCA · Question #70
Will this configuration achieve fault tolerance for managers in a swarm? Solution: only two managers, one active and one passive.
The correct answer is B. No. A configuration of only two Docker Swarm managers, even with active/passive roles, does not achieve fault tolerance.
Question
Will this configuration achieve fault tolerance for managers in a swarm? Solution: only two managers, one active and one passive.
Options
- AYes
- BNo
How the community answered
(27 responses)- A19% (5)
- B81% (22)
Why each option
A configuration of only two Docker Swarm managers, even with active/passive roles, does not achieve fault tolerance.
An active/passive setup for managers with only two nodes means that if the active node fails, the swarm loses its quorum, even if the passive node is ready to take over, because 1 out of 2 is not a majority required by Raft.
Docker Swarm managers rely on the Raft consensus algorithm, which requires a strict majority (quorum) of nodes to operate. With only two managers, if one node fails, only one manager remains, which is not a majority of two (a majority would be two managers), thereby preventing consensus and rendering the swarm inoperable. Raft inherently works best with odd numbers of nodes.
Concept tested: Docker Swarm manager fault tolerance and Raft quorum
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.