Skip to content
All concepts

Concept

Split brain

Split brain is when two parts of a system each believe they are in charge and both accept writes. It usually follows a network cut or a long pause, after which the two sides hold different data that cannot be merged automatically. The defences are majority votes for choosing a leader and fencing tokens for refusing writes from a stale one.

Watch the paused worker return and write as if nothing had happened, while the new leader is writing too. A live step from the lesson Split brain & fencing tokens (Consensus & replication). Timings and counts are illustrative.

Where you'll see it