Two leaders

  • Fix
  • Quorum 03

Difficulty 2 of 5

A network split isolates the leader for one second. A majority must restore leadership within 0.5 seconds. Stop the old leader from applying writes with an old term. Waiting for the split to end is too slow.

0:03. The old leader still applies writes. Graph: two nodes accept writes in the same second.

Play level

HTTP/2HTTP/2HTTP/2Users100 req/sAPI server1 vCPU · 1 GBAPI server1 vCPU · 1 GBAPI server1 vCPU · 1 GB
HTTP/2HTTP/2HTTP/2HTTP/2Users100 req/sAPI server1 vCPU · 1 GBAPI server1 vCPU · 1 GBAPI server1 vCPU · 1 GB
The board at the start of the level
A lease with a fencing tokenTap to turn the fencing tokens on or off

Fencing tokens · lease 30 s · late write with token 33: rejected

Goals and limits

Lost writes
none
Split-brain writes
none
Recovery time (RTO)
under 0.5 s
Monthly cost
under 40 USD/mo
Edit limit
4
Traffic
100 req/s

Concepts

How players did

Player results load from the server.