SD-34 · DATABASE CONTROL PLANE · INTERACTIVEBreak it.
Break it.
Then fix it.
Grow the storage fleet, watch which part of the control plane gives way, and add what a real database control plane needs. Every switch is a decision you would defend in an interview.
CHALLENGERun 50K storage nodes with zone-loss recovery of 30 s or less and every part of the control plane healthy.
StatusDOWNAt 20K nodes
Zone-loss recovery677 sTarget 30 s or less
Store load999+%Map reads
Placement pass50 sTarget 40 s or less
Monthly cost$3,000Control plane only
Storage nodesLIVE
20K nodes · 1.0M shards10K heartbeats/s
Workflow workersOK
Steps saved, resumable200 map changes/s
PlacementDOWN
One loop, whole fleet50 s a pass
Control APIOK
Writes desired state≈ 50 ops/s
Metadata storeDOWN
5 voters, Raft11K writes · 33M rows/s
FailoverSLOW
Coordinator picks leaderszone loss: 677 s
Query routers × 1,000OK
Re-read the map every 30 scached shard map
Heartbeats are flooding the store. 10K heartbeats a second are each a write, and consensus commits about 8,000. Keep liveness in health monitors’ memory and write only when a node changes state.
6 sPer-shard failoverThe replicas vote; the control plane can be down.
1 in 500Heartbeats writtenMonitors write only when a node changes state.
208MRows/s if routers pollAt 50,000 nodes. Pushing deltas costs about 5,000.
10KNodes per cellA bug or a bad deploy reaches one cell, not the fleet.
Want the reasoning behind every switch?Visual walkthroughFull write-up
Was this lab useful?Your vote tells us what to improve next.