What is a retry storm, and how does one start?
Sketch your own answer first, then compare it with the one below.
A strong answer
A retry storm is a loop in which retries add load to a dependency that is already struggling, which makes it slower, which causes more timeouts and more retries.
A typical start is a small trigger: a deploy, a cache flush, a brief loss of capacity. A few requests time out. Their clients retry. The dependency now has the original load plus retries. Its queue grows and its answers get later, and soon most attempts time out, each one triggering another. A timed-out request is also usually still in the queue, so the dependency does the work for an answer nobody reads, and then does it again for the retry.
The dangerous part is that it can outlast its trigger. Once the queue is long enough that every answer is late, the system cannot drain, even when the original fault is fixed. That is called a metastable failure.
The fixes break the loop: fewer attempts per request, a retry budget, a circuit breaker, load shedding at the dependency and backoff with jitter. Each one cuts a different link: fewer attempts shrink the multiplier, a budget or breaker caps it, shedding keeps the queue short, and jitter spreads what remains.
Sources
- Nathan Bronson, Abutalib Aghayev, Aleksey Charapko, Timothy Zhu (2021). Metastable Failures in Distributed Systems.
- Betsy Beyer, Chris Jones, Jennifer Petoff, Niall Richard Murphy (2016). Site Reliability Engineering, chapter 22, Addressing Cascading Failures.