Your etcd cluster has 3 members. How many can you lose before writes stop, and why would adding one more member not help?
- It tolerates half the members failing; adding one raises tolerance by one. Half is not a majority. Tolerance grows only at odd counts: 3, 5, 7.
- A strict majority must remain: 3 members tolerate floor((3−1)/2) failures. One more member makes the count even, which raises the majority needed without raising the failures tolerated. Quorum is (n/2)+1. 3→2 needed (1 failure), 4→3 needed (still 1 failure), 5→3 needed (2 failures).
- Tolerance depends on the number of API servers, not etcd members. API servers are stateless clients of etcd; etcd's own membership decides quorum.
- It can lose all but one member; the survivor keeps serving from its local copy. A lone member cannot form a majority; it refuses writes to avoid split-brain.
A majority must stay up: 3 members survive 1 loss and 5 survive 2, and an even count adds cost but no extra tolerance.
Raft commits a write when a majority acknowledges it, so availability is a function of how many members can still form that majority. Even sizes buy nothing but cost: 4 members tolerate 1 failure just like 3, while needing more disk and network. Interviewers ask this to see whether you reason from the majority rule rather than from memorized numbers.
Saying an extra member always adds safety. Four members tolerate the same single failure as three, at more replication cost, and make a split more likely.