Two leaders

Quorum 03
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

Fix the board. Turn every goal green.

Traffic
100 req/s · reads only
Limit
API server answers about 3,300 req/s
Bill
  • API server × 312 USD/mo
12 of 40 USD/mo

Goals

Not tested yet

Saved data that was lost later.Writes accepted by two leaders at the same time.Time from a failure until the service works again.What the servers and services cost each month.

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.

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