Sven Erik Matzen

Software Architect | Cloud & Security Expert | AI-enabled Solutions

The Failure That Stays – Metastable Failures and Why Systems Don't Heal on Their Own After the Storm

Cloud Computing · 2026-11-16

EU label: fully AI-generated content Fully AI-generated article (no prior review).

🎧 Listen to this article

The Hook

Imagine a database that reliably answers queries in under 100 milliseconds as long as fewer than 300 queries per second (QPS) arrive. The application in front of it generates 280 QPS in normal operation. Everything is green, utilization sits at a little over 93 percent – efficient, one might say.

Then the network fails for ten seconds. Clients run into timeouts and retry their requests. When the network comes back, the database no longer faces 280 QPS, but first attempts plus retries. It slows down, more requests time out, more retries are generated. Load settles at around 560 QPS – almost twice the capacity. The cause, the network outage, was fixed long ago. The system still does not recover.

This scenario does not come from a textbook on disasters but from a paper by Nathan Bronson, Abutalib Aghayev, Aleksey Charapko and Timothy Zhu, presented at the HotOS 2021 workshop. They gave the phenomenon a name: metastable failures. According to the authors, the system in this example can only be rescued once load drops below 150 QPS or retries are limited to under 20 QPS.

The Core Concept: A State That Sustains Itself

The term is borrowed from physics, where a metastable state denotes a local equilibrium that passes into another state after a sufficiently large disturbance. Bronson and colleagues use it for a bad state that a trigger brings about and that persists once the trigger has disappeared, and they distinguish three states:

State Description Response to a trigger
Stable Load is below a threshold The disturbance is absorbed, the system returns
Vulnerable System is healthy, but above the threshold A trigger can tip the system into the metastable state
Metastable Failure state with very low useful throughput (goodput) The state persists even after the trigger has disappeared

The crucial point: from the outside, the vulnerable state looks like the stable one. According to the paper, systems can run in the vulnerable state for months or years, often even with better efficiency – until a trigger arrives.

The authors separate two things that are often confused in postmortems:

  • The trigger: a load spike, a deployment, a brief network outage. It knocks the system out of balance.
  • The sustaining effect: a feedback loop – often work amplification – that stabilizes the bad state.

Bronson et al. argue that the sustaining effect is the actual root cause that should be fixed, whereas incidents are often initially blamed on the trigger. Equally important is the distinction: a failure that disappears as soon as the trigger disappears – such as a denial-of-service attack – is by definition not metastable. According to the authors, leaving a metastable state requires a strong corrective push, such as a reboot or a drastic reduction in load.

Example 1: The Retry Storm

The opening example shows the most common mechanism. From the perspective of a single client, retries are reasonable: a request failed, so you try again. From the perspective of the overall system, however, they turn overload into more overload.

This becomes especially dangerous in deep call chains. The Amazon Builders' Library works through an example in its article "Timeouts, retries, and backoff with jitter" (December 2019): a stack of five service layers in which each layer makes three attempts. If each layer retries independently, the load on the database increases 243-fold (3^5) – which, according to the article, makes recovery unlikely. The Google SRE Book shows a smaller variant in the chapter "Addressing Cascading Failures": three layers with four attempts each yield up to 64 attempts (4^3) on the database for a single user action.

The Builders' Library therefore calls retries "selfish" and recommends, for low-cost operations, retrying at only one point in the stack.

Example 2: The Look-Aside Cache and Hidden Capacity

The second example from the HotOS paper is more subtle. A database can handle 300 QPS. In front of it sits a cache with a 90 percent hit rate. Only every tenth request reaches the database – so the system can seemingly serve 3000 QPS. These 3000 QPS are the advertised capacity; the actual, "hidden" capacity without the cache is 300 QPS.

If the cache fails or is flushed, suddenly ten times as many requests reach the database. It is overloaded and responds too slowly to refill the cache. The empty cache sustains the overload, and the overload prevents the cache from filling. The trigger (a cache restart) is long over; the loop remains.

Two further mechanisms from the paper show that retries are not the only source of feedback loops:

  • Slow error handling: Error paths are often more expensive than the success case – they produce stack traces, perform DNS lookups or write to disk. Under load, more errors occur, which consume more scarce resources, which lead to more errors.
  • Link imbalance: A connection pool with an MRU (most recently used) policy preferred precisely the congested network links and thereby kept them congested. According to the paper, the fix was a single line of code changing this policy – after more than two years of recurring outages.

Example 4: Metastable Failures in the Wild

Is the phenomenon a theoretical curiosity? A follow-up paper answers that empirically. Lexiang Huang and colleagues (Penn State, University of New Hampshire, Twitter) analyzed publicly documented incidents in "Metastable Failures in the Wild" (OSDI 2022). According to the abstract, they found 22 metastable failures from 11 different organizations; according to the authors, at least 4 of 15 major AWS outages of the preceding decade were caused by metastable failures.

Some findings from the paper:

  • The retry policy was by far the most common sustaining effect and affected more than half of the incidents studied.
  • The outages lasted between 1.5 and about 73.5 hours; the most common range was 4 to 10 hours (35 percent of incidents).
  • Load shedding – deliberately rejecting load – was the most frequently used means of resolution and was used in more than half of the cases (the paper states over 50 percent in one place and over 55 percent in another).

The authors also extend the model: besides triggers that increase load (load spikes), there are triggers that decrease capacity; and besides workload amplification, there is amplification through capacity degradation.

Framework: Countermeasures by Point of Leverage

Point of leverage Measure Source
Break the feedback loop Limit retries: per request, and process-wide via a budget (e.g. token bucket) Builders' Library; SRE Book; Bronson et al.
Spread out retries Exponential backoff with jitter Brooker 2015; SRE Book
Shed load Load shedding, e.g. HTTP 503 above a number of in-flight requests; LIFO instead of FIFO SRE Book; Bronson et al.
Prioritize Give retried requests lower priority Bronson et al.
Make error paths cheaper Fast error paths, throttled stack traces Bronson et al.
Know the threshold Stress tests, including with production traffic; capacity buffer Bronson et al.

On jitter: In 2015, Marc Brooker showed via simulation on the AWS Architecture Blog that pure exponential backoff keeps clients in lockstep. With random spreading ("Full Jitter", "Equal Jitter", "Decorrelated Jitter"), the number of calls in his model with 100 contending clients dropped by more than half. The Google SRE Book states the rule succinctly: limit retries per request and always use randomized exponential backoff; as an example of a process-wide budget it cites 60 retries per minute.

Noteworthy is the Builders' Library's remark: backoff alone often helps less than one would expect – failed calls that back off to the same point in time collide again; this is exactly what jitter counters. I am of the opinion that the retry budget is nevertheless the more important measure: backoff only delays retries but does not reduce the number of attempts per request; a budget limits the amplification itself.

The Cost of Efficiency

The uncomfortable thing about metastable failures: they are often a side effect of optimizations that make sense in normal operation. A cache increases throughput, retries raise the success rate for sporadic errors, high utilization saves money. Bronson et al. therefore also recommend organizational incentives that do not exclusively reward optimizations for the common case.

I am of the opinion that a simple rule of thumb follows from this: every optimization that widens the gap between advertised and actual capacity should be accompanied by the question of what happens if it disappears for a few seconds.

The Central Takeaway

  1. Look for the sustaining effect, not just the trigger. If an incident persists even though the cause has been fixed, a feedback loop is an obvious suspect.
  2. Know your hidden capacity. Calculate what your backend can handle without the cache and with all retries.
  3. Limit retries at one point and with a budget. Backoff with jitter is useful but does not replace a budget.
  4. Plan for load shedding. In the field study, shedding load was the most common means of resolution – it should exist as a prepared switch, not as improvisation during an incident.
  5. Test the way back. Stress tests should check not only whether the system survives a spike, but whether it finds its way back to normal afterwards.

Cross-References in the Vault

Food for Thought

Which of your systems runs smoothly today at high utilization – and would it find its way back on its own after a ten-second network outage, or would it need someone to restart it?

Fact Check

Automated AI check against primary sources; no human expert review.

67 claims were checked (32 hard facts, 5 quotes or terms, 16 source attributions, 14 synthesis claims). 6 passages were corrected or softened. The most important corrections:

  • The Builders' Library had been wrongly credited with the reasoning that backoff does not reduce the number of retries; the article attributes the limited effect of backoff to calls colliding again. The assessment of the retry budget is now marked as my own opinion.
  • The physics analogy was skewed: in the paper, the metastable state is the bad, persisting state, not the healthy one.
  • The share of load shedding was softened because the OSDI paper itself states over 50 percent in one place and over 55 percent in another.

Sources and Further Reading

  1. Bronson, N., Aghayev, A., Charapko, A., Zhu, T. (2021): Metastable Failures in Distributed Systems. Proceedings of the Workshop on Hot Topics in Operating Systems (HotOS '21), DOI 10.1145/3458336.3465286. https://sigops.org/s/conferences/hotos/2021/papers/hotos21-s11-bronson.pdf
  2. Huang, L., Magnusson, M., Bangalore Muralikrishna, A., Estyak, S., Isaacs, R., Aghayev, A., Zhu, T., Charapko, A. (2022): Metastable Failures in the Wild. 16th USENIX Symposium on Operating Systems Design and Implementation (OSDI '22), pp. 73–90. https://www.usenix.org/conference/osdi22/presentation/huang-lexiang
  3. Brooker, M. (2019), Amazon Builders' Library: Timeouts, retries, and backoff with jitter. https://aws.amazon.com/builders-library/timeouts-retries-and-backoff-with-jitter/
  4. Brooker, M. (2015): Exponential Backoff and Jitter. AWS Architecture Blog, March 4, 2015. https://aws.amazon.com/blogs/architecture/exponential-backoff-and-jitter/
  5. Ulrich, M.: Addressing Cascading Failures. In: Beyer, B. et al. (eds.): Site Reliability Engineering. O'Reilly 2016. https://sre.google/sre-book/addressing-cascading-failures/

← All articles