← Back to all chapters

Chapter 09Down the Rabbit Hole: Why Systems Stay Down After the Trigger Is Gone

7 min read
rabbit-holedistributed-systemsreliabilityqueueing

On October 19, 2025, a race condition in DynamoDB's DNS management left an empty record in AWS us-east-1. That got fixed. But EC2 took hours more to recover: its DropletWorkflow Manager had "entered a state of congestive collapse". Re-establishing leases took longer than the lease timeout, so the work kept getting re-queued. AWS got out by throttling incoming work and restarting hosts selectively.

"The trigger was fixed but the system stayed down" is the whole topic. A 2021 HotOS paper named it: a metastable failure.

A sandwich shop that can't recover#

One cook makes 100 sandwiches an hour. About 70 people an hour come in. Customers have a rule: if no sandwich arrives in ten minutes, assume the order got lost and order again, without cancelling the first. Normally nobody waits ten minutes.

Then the stove goes out for fifteen minutes. When it's back, every waiting customer has already re-ordered, so there are two or three tickets per hungry person. The cook works flat out, but by the time any sandwich is ready its customer has given up and ordered again. The kitchen is 100% busy and nobody eats. The stove is fine; the re-ordering rule keeps the kitchen drowning.

Queue is longserver is 100% busyWaits pass the timeoutanswer arrives too lateClients retryup to 2 extra attemptsMore work arrives210/s in, 100/s outholds itself downgoodput 0
The sustaining loop. Once it turns, the original trigger no longer matters.

The HotOS definition: a trigger "causes the system to enter a bad state that persists even when the trigger is removed", with "a sustaining effect, often involving work amplification or decreased overall efficiency, that prevents the system from leaving the bad state".

Watching it happen#

The dive's simulator is the sandwich shop as a server: 100 req/s capacity, 70 req/s arriving, clients time out after 1 s and retry up to twice, FIFO queue, and the server can't tell when a client has given up. Capacity drops to zero for ten seconds, then returns at t = 30 s.

1/4Healthy
t = 0-20 s
queue    ~1-3     |#
attempts ~72/s
goodput  ~72/s    all useful work

The queue holds one to three requests.

The simulator run. Step through.

The kick needed is small. A 1.2 s outage is enough to stick at 70 req/s; at 90 req/s, 1.1 s.

A plot of queue size over time from Alvaro et al.'s toy server: the queue hovers around 20, jumps to about 100 at the first dashed line at time 200, and stays pinned there through time 1000, well past the second dashed line at 400.

Figure 1a from Alvaro et al., "Formal Analysis of Metastable Failures in Software Systems", arXiv:2510.03551, licensed CC BY 4.0. Cropped and recompressed.

Same shape from a different group's model: the queue jumps and stays pinned long after the dashed window.

The equation: two answers to the same load#

Say each attempt times out with probability p, with up to r retries. Load the server sees:

λ_eff(p) = λ * (1 - p^(r+1)) / (1 - p)
 
λ_eff(0) = λ            (healthy: one attempt per request)
λ_eff(1) = (r + 1) * λ  (collapsed: every attempt times out)

p depends on load: keeping up means a short queue and p ≈ 0; not keeping up means an unbounded queue and p → 1. Look for self-consistent states:

  • Healthy (p ≈ 0): holds while λ < μ (capacity).
  • Collapsed (p ≈ 1): holds while (r + 1) * λ > μ.

Both hold when μ / (r + 1) < λ < μ.

 load (req/s)
 0          33                       100
 ├───────────┼─────────────────────────┼──────────▶
 │  healthy  │  BISTABLE: healthy      │ overloaded
 │  only     │  or collapsed           │ regardless
                    ▲ simulator flips here; at 70 we were deep inside
Load axis for mu = 100, r = 2. Inside the band, history decides.
brief trigger (a 1.2 s outage is enough at 70 req/s)healthycollapsedhill
Two stable states inside the band: a small kick moves the system over the hill and it stays. Schematic, not measured.

The fixed-point framing is the dive's own synthesis; the HotOS paper shows the same band in a figure, and Marc Brooker called it "bistability" in 2019. The OSDI 2022 follow-up (22 real incidents) generalises it: real safe capacity is advertised capacity divided by the worst-case amplification your own policies can produce, from retries on the load side and from things like cache loss on the capacity side.

The HotOS examples: database and cache

A database handles 300 queries/s. The app sends each query plus one retry after a 1 s timeout, and normally runs at 280, a healthy-looking 93%. After a 10 s network blip, clients send 560/s and every query times out. Getting out requires load under 150. The system was only truly stable at half of what it could serve, and the 150 to 300 band behaves perfectly until something bumps it.

With a cache it's worse. At a 90% hit rate an app serves 3,000 queries/s against a database that handles 300. Lose the cache and the database gets ten times its capacity. The app times out before misses can refill the cache, so it never warms. Advertised capacity 3,000, hidden capacity 300.

What actually breaks the loop#

Change one thing at a time in the simulator:

ScenarioGoodput last 20 sHealthy again at
Baseline (λ=70, 2 retries, FIFO)0.0/snever
No retries69.8/st=51 s
Retry budget 10%69.8/st=64 s
Deadline-aware dequeue69.8/st=30 s
LIFO queue69.8/st=30 s
  • No retriest = 51 s
  • Retry budget 10%t = 64 s
  • Deadline-aware dequeuet = 30 s
  • LIFO queuet = 30 s
Time until healthy again in the simulator (s). Baseline never recovers, so it has no bar.

No retries works but slowly: the backlog still drains, all wasted work. A retry budget caps amplification near 1.1x however bad things get, shrinking the band. Envoy and Finagle default to 20%; Google's SRE book says under 10% per client.

The two that recover instantly: dropping expired requests at dequeue skips dead work for free, and LIFO serves the newest request, whose client is still waiting, so it succeeds and doesn't retry. Facebook runs this as "adaptive LIFO" plus CoDel-style queue timeouts.

Where the intuition fails#

  • "Backoff with jitter fixes retry storms." It spreads load in time; it doesn't remove it. Slack's February 2022 report says their clients already had exponential backoff with jitter, and retries "still contributed to the load". Brooker: "in open systems, deferring load does not work". Only budgets and caps reduce total work.
  • Amplification multiplies across layers. Google's SRE book: three layers each making four attempts is 4³ = 64x load on the database.
  • Fixes build the next loop. The OSDI 2022 study calls it "fix to break". After an AWS SimpleDB incident, servers retried the lock service indefinitely, and a similar failure followed in DynamoDB. Spotify added error-path logging, which made every retry more expensive in the next incident.
  • Benchmarks can't see it. YCSB and TPC-C are closed systems: each client waits for a reply, so rising latency lowers load on its own. The failure needs an open system, where requests keep arriving however slow you are, like real internet traffic.
client --request--> server
client <--reply---- server      client waits before sending again

slow server  ->  fewer requests sent  ->  load drops by itself
Why benchmarks miss it (schematic).

The question I'm left with#

The vulnerability is invisible while healthy. A system at 70% CPU in the band looks fine on every dashboard. The HotOS paper says hidden capacity "is determined by the behavior … of the system when it is in a failure state, so it is difficult to measure during normal operation". And you can't safely test it by pushing production into a state it doesn't leave on its own.

There's work on predicting it. Isaacs, Alvaro, Majumdar and colleagues model a server as a continuous-time Markov chain over queue length and requests waiting to retry, define metastability as two sets of states that are slow to move between, and are applying it to AWS control planes. A 2026 paper learns that structure from trajectories, so far only on simulations. Another argues real failures are "sins of composition": loops across component boundaries, where each component's locally stabilising action destabilises the next.

The one I'd most like answered is LLM serving. Memory pressure causes KV-cache preemption, so recomputing, so more GPU work per request, longer queues, timeouts, retries, and more memory pressure. That looks exactly like a sustaining loop. As of the dive, no peer-reviewed paper had framed it as metastability.

Sources#

© 2026 Bharat Kaurav. Built with Next.js & Tailwind.

>_ bk@netherwatcheresc to close

Welcome, reader. Type help to see what this shell can do.