Cascading Failure
The four canonical cascading-failure patterns from the SRE Book and how to prevent each.
Overview
What a cascading failure is
Cascading failure is the deepest material in SRE Book Chapter 22. One component fails or slows, and a series of compounding effects brings down the whole system.
Every SRE has seen one, and many architectures do not survive their first. The damage spreads through a loop that feeds itself, in five steps.
- A trigger arrives: a slow dependency, a bad deploy or a traffic spike.
- Latency rises, and threads run out.
- Clients retry, and the load multiplies.
- Health checks fail, and the load balancer removes nodes.
- The remaining nodes are overloaded, so latency rises again and the loop goes back to step 2.
> [!IMPORTANT] Cascading failures are positive-feedback loops. Fixing the trigger is not enough; you must break the loop.
Key concepts
- Server overload spiral
- Resource exhaustion
- Service unavailability propagation
- Retry amplification
- GC death spiral
- Metastable failure
Interview questions
- Walk me through a real cascading-failure scenario.
- How do you recover from a live cascading failure?
- What's the GC death spiral and how do you prevent it?
Sign up free to read the full topic
More SRE topics
Start free on Cariara · Coding problems · System design studio