Resilience · Concept
Cascading failure
A failure that feeds itself: one part breaking adds load to the parts around it, which raises their chance of breaking too, so the failure keeps growing instead of settling down.
A defect in DynamoDB’s DNS automation removed, at once, every IP address for its regional endpoint in N. Virginia (us-east-1). Every system that reached DynamoDB through that endpoint failed to connect, including AWS’s own internal services. AWS fixed the DNS record at 2:25 AM on 20 October (all times PDT), and that did not end it: customers kept seeing increased errors when launching new EC2 instances, and full EC2 recovery came at 1:50 PM.
A failure that grows through positive feedback: one part failing raises the chance that other parts fail, whether they depend on it or sit beside it.
What it is
The Google SRE book’s definition:
“A cascading failure is a failure that grows over time as a result of positive feedback.”Mike Ulrich, Google SRE book
The parts it reaches need not depend on the broken one: the chapter’s first example spreads sideways, to identical peers. One replica fails from overload, its load moves to the rest, and a “domino effect” takes them all down. The book adds: “The most common cause of cascading failures is overload.”
AWS’s postmortem never says “cascading failure”. It describes the mechanism, and calls one form of it congestive collapse. The definition used here comes from the Google SRE book.
The problem
A small fault can produce a large loss of service. Google’s worked example is a frontend of 10 servers with 100 threads each, serving 1,000 queries per second (QPS) at 100 ms a request. Then 5% of requests stop completing and wait out a 100-second deadline. Assuming no other secondary effects, the book’s arithmetic runs:
stuck requests: 5% × 1,000 QPS = 50 QPS threads they hold: 50 QPS × 100 s = 5,000 the other 95%: 950 QPS × 0.1 s = 95 threads threads needed: 5,000 + 95 = 5,095, but only 1,000 exist share served: 1,000 ÷ 5,095 = 19.6% error rate: 100% - 19.6% = 80.4%
If servers start to crash-loop, the book warns it is “often difficult to escape”: servers coming back online are “bombarded with an extremely high rate of requests and fail almost immediately.”
From first principles
A cascade needs a loop in which the response to the problem becomes more of the problem. AWS’s postmortem shows a loop and a chain:
- Work that times out is redone, which adds work. A system called DWFM keeps a lease on each physical server EC2 uses; a server without an active lease can’t take new instances. DWFM had so many leases to re-establish that the work timed out before finishing, and more was queued to try again. AWS calls the state congestive collapse: DWFM “was unable to make forward progress”.
- Fixing the cause can start the loop. It began as DynamoDB recovered and DWFM set out to re-establish every lease in the fleet. Engineers broke it by throttling work and restarting hosts (solution, step 1).
- Health checks can add load and remove capacity. AWS’s Network Load Balancer (NLB) health checks flipped between failing and healthy. AWS: “The alternating health check results increased the load on the health check subsystem, causing it to degrade”, which delayed checks and triggered automatic failover.
The general shape, in our own words:
a part slows or fails → its work waits, times out, is retried or moved → more load lands on it and its neighbors → they slow or fail too, and the loop repeats
The solution
Break the loop, and accept that breaking it costs something.
- Throttle, then restart. At 4:14 AM, AWS’s “engineers throttled incoming work and began selective restarts of DWFM hosts”.
- Turn the automation off while you recover. At 9:36 AM, AWS disabled NLB’s automatic health check failovers, which let healthy nodes and targets back into service.
- As a last resort, cut traffic hard. The Google SRE book calls dropping load “a big hammer”, usually kept for a true cascade you cannot fix by other means. Its example: a service healthy at 10,000 QPS starts crashing at 11,000, and dropping to 9,000 “will almost certainly not stop the crashes.” If the entire service is crash-looping, “only allow, say, 1% of the traffic through.”
- Reject the excess. David Yanacek, Amazon Builders’ Library: “When a server approaches overload, it should start rejecting excess requests so that it can focus on the requests it decides to let in.”
- Cap retries per request, and per process. The SRE book: “Limit retries per request.” Then add a budget for the whole process, for example “only allow 60 retries per minute in a process”.
Patterns: real systems cap their own automation
Automation meant to protect you can remove more capacity than the fault did, so widely used systems cap how much it may remove. Defaults as of October 2026:
| System | Setting | Default | What it limits |
|---|---|---|---|
| Envoy | panic threshold | 50% | Below this share of available hosts, Envoy ignores health status entirely |
| Kubernetes | --node-eviction-rate | 0.1 per second | At most one node’s pods evicted per 10 seconds |
| Kubernetes | --unhealthy-zone-threshold | 0.55 | At or above this share of unhealthy nodes in a zone, eviction slows; in a cluster of 50 nodes or fewer, it stops. A zone with no healthy nodes evicts at the normal rate |
Envoy says why: “The panic threshold is used to avoid a situation in which host failures cascade throughout the cluster as load increases.”
Do
- Put a ceiling on how much capacity your automation may remove.
- Cap retries per request, and with a budget for the whole process.
- Reject excess work early so accepted work still completes.
- Be ready to switch off health-check automation during an incident.
Don’t
- Assume fixing the root cause ends the outage (AWS, October 2025).
- Expect dropping back to the old healthy load to stop it (Google SRE book).
- Set deadlines orders of magnitude above normal latency (Google SRE book).
- Let health-check failover remove unlimited capacity (AWS, October 2025).
Trade-off
Every guard has a cost when it acts. Envoy’s panic threshold sends traffic to hosts it believes are unhealthy. Kubernetes’ eviction limits leave pods on nodes it marks unhealthy. Load shedding fails requests the server might have managed to serve.
The Google SRE book lists retrying on failures, shifting load from unhealthy servers, killing unhealthy servers and adding caches: all “might be implemented to improve the normal case, but can improve the chance of causing a large-scale failure.”
How it fits with the rest
Most of this deck exists to interrupt cascading failure. Backoff with jitter keeps retries from arriving as a wave, and a retry storm is what happens when retries pile onto a service that is already failing; when several layers each retry, the attempts multiply.
Practise it in two minutes
Predict what happens, watch it move, change the numbers, and get tested again before you forget.
Open Cascading failure in the app →Related
Sources
- Google SRE book, “Addressing Cascading Failures”, written by Mike Ulrich
- AWS, “Summary of the Amazon DynamoDB Service Disruption in the Northern Virginia (US-EAST-1) Region”, October 2025
- David Yanacek, “Using load shedding to avoid overload”, Amazon Builders’ Library
- Envoy documentation, “Panic threshold”
- Kubernetes documentation, Nodes