Split Brain
ELI5 - The Vibe Check
Split brain is when a network hiccup cuts a cluster of servers in half, and both halves, unable to talk to each other, each decide they're the boss and keep accepting writes independently. Now you've got two different sources of truth that have quietly diverged, and reconciling them later means somebody's data is going to lose. It's one of the scariest failure modes in distributed systems precisely because everything looks healthy from inside each half.
Real Talk
Split brain occurs when a network partition divides a distributed cluster into isolated groups that each believe they are the sole authoritative leader, leading to conflicting, divergent writes that must later be reconciled or discarded. It's prevented by quorum-based leader election (requiring a majority of nodes to agree, so at most one partition can have enough votes to elect a leader) and by fencing mechanisms that revoke a former leader's ability to write once it's no longer trusted.
When You'll Hear This
"The network partition caused a split brain, both nodes thought they were primary for six minutes." / "Quorum-based election is specifically designed so split brain can't produce two simultaneous leaders."
Related Terms
Consensus Algorithm
A consensus algorithm is how a group of servers democratically agree on something even when some of them are flaky or unreachable.
Distributed Lease
A distributed lease is a time-limited 'I've got this' claim that one node takes out on a resource or a role, like being the leader, so everyone else knows...
Fencing Token
Say a node holds a lease, but then it freezes for a while, its lease quietly expires, and a new leader takes over, and THEN the frozen node wakes back up...
Quorum
A quorum is the minimum number of nodes that must agree before a distributed system trusts a decision, whether that's electing a leader or confirming a wri...
Raft
Raft is a consensus algorithm designed to be understandable, unlike its predecessor Paxos which requires a PhD to read.