Quick revision
The short answer
Both sides kept running because membership was based only on failure detection: each side saw the other as unreachable, removed those members and carried on, forming two independent clusters. Split-brain resolution strategies include keep majority, static quorum, keep oldest, down all and lease-based decisions; keep majority fits a 6 and 4 split, so the 4-node side stops and its nodes rejoin, with a tie-breaker for even splits. Stopping the minority beats merging two versions afterwards, and we test it by actually partitioning the network in staging.
What to remember
In this answer, we saw that a cluster whose membership relies only on failure detection splits into two when the network partitions, because each side treats the other as crashed and carries on. Split-brain resolvers decide which side may continue, using keep majority, static quorum, keep oldest, down all or an external lease; Akka and Pekko provide these, and Hazelcast offers split-brain protection with merge policies. For a 6 and 4 split, keep majority stops the 4-node side, which is far better than merging two versions afterwards, and we prove the configuration with real network partitions in staging.
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.
Both sides kept running because membership was based only on failure detection: each side saw the other as unreachable, removed those members and carried on, forming two independent clusters. Split-brain resolution strategies include keep majority, static quorum, keep oldest, down all and lease-based decisions; keep majority fits a 6 and 4 split, so the 4-node side stops and its nodes rejoin, with a tie-breaker for even splits. Stopping the minority beats merging two versions afterwards, and we test it by actually partitioning the network in staging.
Why this question is asked
An embedded data grid makes session state fast and simple until the network splits. Then a cluster that looked like one system turns out to be two, both accepting writes, and after the network heals nobody knows which version of a session is right. Interviewers ask this because split brain is the textbook failure of membership based only on failure detection, and the strategies to prevent it are a good test of understanding quorums. In this answer, we will see why both sides kept running, go through the resolution strategies, choose and configure one, discuss merging, and plan a test.
1Why Both Sides Kept Running
Each node in the grid runs a failure detector. When the network split the 10 nodes into a group of 6 and a group of 4, each node could still reach the members on its own side and none on the other. To each side, the other side looked exactly like 4 or 6 crashed nodes. Failure detection cannot tell a crash from a partition, because in both cases messages simply stop arriving. So each side did what it was designed to do: it removed the unreachable members, rebalanced partition ownership among the members it could see, promoted backup copies of the data, and continued serving.
The result is two independent clusters, each convinced it is the whole cluster, both accepting session writes from the users whose requests reached them. That is split brain at the application level. Nothing in a membership protocol based on failure detection alone prevents it, because nobody ever asked whether a side was allowed to continue.
6 messages in order. Play them, or step through them one at a time.
2The Split-Brain Resolution Strategies
A split-brain resolver adds the missing question: after a partition, which side may continue? Every strategy answers it using only information each side has locally, so that both sides reach complementary decisions without talking to each other.
| Strategy | Who survives | Weak spot |
|---|---|---|
| Keep majority | side with more than half the members | even split needs a tie-breaker |
| Static quorum | side with at least a fixed size, e.g. 6 | must be resized when the cluster grows |
| Keep oldest | side containing the oldest member | small side may survive |
| Down all | nobody, when unsure | full outage, but never two clusters |
| Lease-based | side holding a lease in an external store | needs a consistent external store |
Akka and Apache Pekko clusters ship a split brain resolver with exactly these strategies (keep-majority, static-quorum, keep-oldest, down-all and lease-majority). Hazelcast takes a slightly different approach: split-brain protection rejects operations on a side smaller than a configured minimum cluster size, and after the network heals, the smaller cluster merges into the larger one using a merge policy for each data structure.
3Choosing and Configuring Keep Majority
For a 10-node cluster split 6 and 4, keep majority is the natural fit. The side with 6 members, more than half of 10, keeps serving. The side with 4 knows it is a minority, so it stops serving, and its nodes shut down and restart, rejoining the majority once the network heals. Users whose requests reached the minority side get errors for a short time and are retried onto the majority side by the load balancer. An even split, 5 and 5, has no majority, so we need a tie-breaker, such as keeping the side with the oldest member or the side that holds a lease in an external store.
Two configuration examples follow. With Pekko, the resolver is enabled and set to keep majority, with a stable-after period so it only decides once membership has stopped changing. With Hazelcast, split-brain protection with a minimum of 6 members makes the minority reject session reads and writes.
Notice one subtlety. Split-brain protection only takes effect once members are detected as gone, so for the few seconds of failure detection, the minority side may still accept writes. The stable-after period has a similar effect in Pekko. The window is small, but the merge policy still matters for those writes.
4Why Stopping the Minority Beats Merging
Without stopping either side, the only option after healing is to merge two versions of every changed entry using a policy: keep the latest update, keep the entry with more hits, or call custom code. For sessions, latest update sounds reasonable, but it silently discards the other side's changes; a user who added items to a cart on one side loses them if the other side wrote later. Merging needs clocks that agree well enough to compare update times, and custom merge code for anything more meaningful.
Stopping the minority avoids the problem for almost all writes. Users routed to the minority briefly see errors and retry, but no two versions of a session are created. Merging is then only a safety net for the short detection window, not the main strategy.
5Testing That Exactly One Side Survives
A split-brain configuration that has never been tested is a guess. In staging, we run the 10-node cluster under realistic load and partition the network with iptables rules on the nodes or a chaos tool, splitting 6 and 4, then 5 and 5. We check three things: exactly one side keeps serving, the other side's nodes stop serving and later rejoin, and clients reconnect to the surviving side without manual action. We also measure how many writes reached the minority during the detection window and verify that the merge policy handles them. Repeating the test after every major upgrade keeps it honest.
6Follow-up questions
Why is an even number of nodes a problem?
Because a split down the middle leaves no majority, so keep majority would stop both sides. Either run an odd number of nodes, or configure a tie-breaker, such as keeping the side with the oldest member or the one holding an external lease.
What if the minority side contains the only copy of some data?
With proper backup counts, each entry has copies on several nodes, and the majority side promotes its backups. If an entry's only copies were all on the minority side, that data is unavailable until the minority rejoins, which is another reason sessions should either be rebuildable or have enough backups spread across failure domains.
Could we use the external lease strategy instead?
Yes, if a strongly consistent store such as a Kubernetes Lease or a database row is available to both sides. The side that holds the lease survives. It handles even splits well, but it makes the cluster depend on that store during partitions.
7Conclusion
In this answer, we saw that a cluster whose membership relies only on failure detection splits into two when the network partitions, because each side treats the other as crashed and carries on. Split-brain resolvers decide which side may continue, using keep majority, static quorum, keep oldest, down all or an external lease; Akka and Pekko provide these, and Hazelcast offers split-brain protection with merge policies. For a 6 and 4 split, keep majority stops the 4-node side, which is far better than merging two versions afterwards, and we prove the configuration with real network partitions in staging.
Open with
Both sides kept running because membership was based only on failure detection. A partition looks exactly like the other nodes crashing, so the six-node side removed the four, the four-node side removed the six, each rebalanced and promoted backups, and we had two independent clusters both accepting session writes.
Then, if they want more
Nothing asked whether a side was allowed to continue. That's what a split-brain resolver adds.
The common strategies are keep majority, where the side with more than half the members survives; static quorum, a fixed minimum size; keep oldest, the side with the oldest member; down all when unsure; and lease-based, where the side holding a lease in an external consistent store survives.
Akka and Apache Pekko clusters provide these in their split brain resolver, and Hazelcast has split-brain protection with a minimum cluster size plus merge policies like latest update or higher hits. Here keep majority fits: the six-node side keeps serving, the four-node side stops, and its nodes restart and rejoin when the network heals.
For an even split I'd need a tie-breaker, like the oldest member or an external lease. I prefer stopping the minority to merging, because merging by latest update silently drops one side's changes; the merge policy is only a safety net for writes during the few seconds of detection.
And I'd test it in staging by partitioning the network with iptables or a chaos tool, six-four and five-five, checking exactly one side serves and clients reconnect to it.
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 both sides kept running, which split-brain resolution strategies exist, and...": https://scrivio-interview-library.netlify.app/architecture/distributed-systems/544eeaf1f9/