Compaction debt

  • Fix
  • Store 05

Difficulty 1 of 5

Each second, 10,000 writes of 1 KB create 10 bytes of disk work per source byte. The store starts with 512 MB of compaction debt. At 1,024 MB of debt, writes stall. Keep p99 below 100 ms and errors below 0.1 percent.

0:07. Compaction debt keeps growing. Graph: debt climbs toward 1,024 MB, then writes stall and errors rise.

Play level

TCPUsers10,000 req/sKey-value s…4 vCPU · 4 GB
TCPUsers10,000 req/sKey-value s…4 vCPU · 4 GB
The board at the start of the level
A disk that fillsArrow keys change the write rate. Tap to ship the logs.

5 MB/s · logs kept on the host · disk full in 33 minutes

Goals and limits

p99 latency
under 100 ms
Error rate
under 0.1%
Monthly cost
under 100 USD/mo
Parts you can add
Key-value store
Part limit
16
Edit limit
3
Traffic
10,000 req/s

Concepts

How players did

Player results load from the server.