Quick revision
The short answer
Two of five nodes are not a majority, so the nodes in data center B could neither elect a leader nor commit writes; that is the protocol correctly preventing split brain, but with three nodes in A, losing A always stops the cluster. With only two sites, no placement keeps a majority after losing either one, so we add a third site, for example 2 + 2 + 1 with a tie-breaking voter in another zone or cloud region, and keep the two main sites close so commits stay fast. If a third site is impossible, the only option is manual recovery that forces a new cluster from B's members, accepting possible loss of the last writes and fencing A before it returns.
What to remember
In this answer, we saw that B's two of five nodes could not form a majority, which correctly prevented split brain but meant that losing A always stopped the cluster, and that no two-site placement can survive losing either site. A 2 + 2 + 1 layout with a tie-breaking voter in a third location survives any single site, with commit latency set by the fastest majority, so the main sites should be close and the leader near its clients. Without a third site, recovery is a manual forced new cluster with fencing and possible loss of recent writes, and every option should be tested by cutting each site in turn.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
Two of five nodes are not a majority, so the nodes in data center B could neither elect a leader nor commit writes; that is the protocol correctly preventing split brain, but with three nodes in A, losing A always stops the cluster. With only two sites, no placement keeps a majority after losing either one, so we add a third site, for example 2 + 2 + 1 with a tie-breaking voter in another zone or cloud region, and keep the two main sites close so commits stay fast. If a third site is impossible, the only option is manual recovery that forces a new cluster from B's members, accepting possible loss of the last writes and fencing A before it returns.
Why this question is asked
Many teams discover the arithmetic of quorums during their first data center outage. Five nodes sounds safe, and two data centers sounds redundant, yet the combination stopped every write for 40 minutes. Interviewers ask this design question to see whether we can explain why the cluster behaved correctly, why no two-site layout can do better, and what placement and procedures would survive the loss of either site. In this answer, we will recap quorum, see why B was stuck, design a three-site placement, look at latency, cover the manual fallback for when a third site is impossible, and plan the tests.
1Why Data Center B Could Not Continue
A consensus cluster, such as etcd or any Raft-based service, needs a majority of its voting members to elect a leader and to commit each write. With five members, a majority is three. Data center A held three members and B held two. When A lost power, B's two nodes could still talk to each other, but two is not a majority of five, so no candidate could win an election and no write could commit.
This is the protocol doing its job. From B's point of view, A's nodes might be alive and serving clients behind a network partition. If B were allowed to elect its own leader with two votes, and A's three nodes elected another, the cluster would have two leaders accepting conflicting payments metadata: split brain. Requiring a majority makes that impossible. The cost is that with this placement, losing A always stops the cluster, while losing B is harmless, because A alone holds a majority.
| Placement (A + B + C) | Lose A | Lose B | Lose C |
|---|---|---|---|
| 3 + 2 | stops (2 of 5) | survives (3 of 5) | n/a |
| 2 + 3 | survives | stops | n/a |
| 2 + 2 (4 nodes) | stops (2 of 4) | stops (2 of 4) | n/a |
| 2 + 2 + 1 | survives (3 of 5) | survives (3 of 5) | survives (4 of 5) |
| 1 + 1 + 1 | survives (2 of 3) | survives | survives |
2Why Two Sites Can Never Be Enough
Whatever placement we choose across two sites, one site holds more than half of the voters or they are split exactly in half. If one site holds the majority, losing it stops the cluster. If they are split evenly, losing either one stops it. There is no arrangement of voters over two sites that survives the loss of either site, because surviving requires the remaining nodes to be a majority, and both sites cannot each hold a majority of the same set.
So the honest answer to 'survive the loss of either data center' is that it requires a third failure domain. It does not have to be a full data center; it needs only to host a voter that fails independently of A and B.
3A Three-Site Placement
The standard design is 2 + 2 + 1: two voters in A, two in B and one tie-breaking voter in a third location C, such as another availability zone, another cloud region or a small colocation rack. Any single site can be lost and at least three of five voters remain. Losing A leaves B's two plus C's one; losing B leaves A's two plus C's one; losing C leaves four.
The tie-breaker needs very little capacity, since it holds the same small metadata as the others, but it must have reliable, low-latency storage like every voter, because it participates in commits whenever one main site is down. Network paths from C to A and from C to B should be independent of the A-to-B link, so that a cut between A and B still leaves C connected to at least one of them.
- Data center A: 2 votersnear most clients; preferred leader location
- Data center B: 2 votersa few ms from A
- Site C: 1 tie-breaker voteranother zone or region; independent network paths
- Clients and servicestalk to the leader, wherever it is
4 layers, from the top down. Step through them one at a time.
Any one site can be lost and three of five voters remain.
4Latency: Where the Commit Time Comes From
A write commits when a majority has stored it. The leader counts itself, so it needs acknowledgements from two others. Commit latency is therefore set by the slowest member of the fastest majority. If the leader is in A, its fastest majority is itself, its A peer and one B node, so commits cost a round trip to B, a few milliseconds if A and B are in the same metro area. C, perhaps 30 ms away, is not on the commit path at all while A and B are healthy.
This suggests three rules. Keep the two main sites close, so the normal majority is fast. Place the leader near the clients that write most, using leader priority or leadership transfer where the product supports it. And accept that when one main site is down, every commit includes C, so latency rises to C's round trip until the site returns. For a payments metadata service, 30 ms during a rare outage is far better than 40 minutes of no writes.
5If a Third Site Is Impossible: Manual Recovery
Some organisations cannot add a third location, for regulatory or cost reasons. Then the cluster will stop when the majority site fails, and the remaining option is a deliberate, manual recovery. For etcd, an operator starts one of B's members with --force-new-cluster, which makes it a single-member cluster with B's data, and then adds the other B node; other products have equivalent commands.
This has two serious costs. Writes that A committed but that had not reached B are lost, because B never saw them. And A must be fenced before it returns: if A's three nodes power back on and resume as the old cluster, there are two clusters with diverging data. Fencing means making sure A's members cannot rejoin or serve clients, by keeping them off the network, wiping their data or changing the cluster's identity. Because of these costs, the decision belongs to a person following a runbook, never to automation.
- Majority site A lost, B has 2 of 5cluster correctly refuses writes
- Is A expected back soon?YesWait; accept downtime, no data lossNoDecide to recover from B
- Fence AA's members must not rejoin or serve
- Force a new cluster from a B memberetcd --force-new-cluster
- Add B's other member, check dataaccept loss of A's last writes
- Rebuild A's members as new joinsnever from their old data
6 steps in order. Play them, or step through them one at a time.
6Testing the Design
We should prove the design before the next outage. In a staging environment with the same placement, we cut each site in turn, A, B and C, by dropping its network or powering off its nodes, and measure two things: whether writes continue and how long the leader election takes, and how commit latency changes while the site is gone. We also cut the link between A and B while both stay up, to confirm that C correctly breaks the tie.
For the manual fallback, if it exists, we rehearse the runbook end to end, including fencing and rebuilding, and time it. A design that has never been tested by cutting a site is still only a diagram.
7Follow-up questions
Could we give one node in B two votes to fix it?
Raft and similar protocols do not support weighted votes, and even if they did, the problem would just move: whichever site holds the majority of weight becomes the one whose loss stops the cluster. Only a third failure domain removes the dependency.
Is a learner or non-voting member in B any help?
It keeps a current copy of the data in B, which makes manual recovery lose less, but it does not count toward the majority, so it cannot keep the cluster writable when A is lost.
Why not run separate clusters in A and B with replication between them?
Then each cluster is consistent on its own, but asynchronous replication between them reintroduces the problem consensus solves: after a failover, B may lack A's last writes and the two can diverge. That can be acceptable for some data, but not for metadata that requires one source of truth.
8Conclusion
In this answer, we saw that B's two of five nodes could not form a majority, which correctly prevented split brain but meant that losing A always stopped the cluster, and that no two-site placement can survive losing either site. A 2 + 2 + 1 layout with a tie-breaking voter in a third location survives any single site, with commit latency set by the fastest majority, so the main sites should be close and the leader near its clients. Without a third site, recovery is a manual forced new cluster with fencing and possible loss of recent writes, and every option should be tested by cutting each site in turn.
Open with
B couldn't continue because two of five nodes aren't a majority. Raft needs three votes to elect a leader and three acknowledgements to commit, and that's deliberate: from B's side, A might still be alive behind a partition, so letting B elect its own leader could create two leaders and split brain.
Then, if they want more
The protocol behaved correctly; the placement was the problem, because with three nodes in A, losing A always stops the cluster. And no two-site layout fixes that, since one site always holds the majority, or they split evenly and either loss stops it.
So I'd add a third failure domain and place 2 plus 2 plus 1: two voters in each main data center and one tie-breaker in another zone or cloud region, with independent network paths. Any single site can then be lost with three of five voters left.
Commit latency follows the slowest member of the fastest majority, so I'd keep A and B close, keep the leader near the clients, and accept higher latency only while a main site is down.
If a third site truly isn't possible, the fallback is a manual runbook: fence A so it can't come back as the old cluster, force a new cluster from B's members, for example with etcd's force-new-cluster, and accept losing A's last writes. Either way, I'd test it by cutting each site in turn and measuring write availability and latency.
About this answer
- Last updated
- 13 November 2026
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the official documentation for the version you use. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "Explain why B could not continue, and design a placement and failover approach that...": https://scrivio-interview-library.netlify.app/architecture/distributed-systems/b0de147c80/