Skip to content

Troubleshooting · Recovery & retries

Service won't recover after an outage? 6 causes, ranked

6 causes, most common first · last reviewed

TL;DR

If a service stays down after the original fault is fixed, it is usually busy with recovery load: retries, reconnects and cold-cache misses that add up to more than its normal peak. Compare the traffic arriving at the service with real user demand; if it is several times higher, shed load and stop retries before adding capacity.

On this page

Quick triage: the first five minutes

  1. Compare requests arriving at the struggling service with requests coming from users at the edge.

    PromQL
    # Spring Boot / Micrometer: requests per second at the service
    sum(rate(http_server_requests_seconds_count{service="payments"}[1m]))
    # compare with the same query at your edge or gateway
    Arrivals far above user demand mean the extra load is retries or reconnects.
  2. Find who is retrying, and how many times each layer retries.

    Metrics
    client SDK retries  × gateway retries  × service mesh retries  × app-level retries
    (1 + 3)            × (1 + 2)          × (1 + 2)               = up to 36 attempts per user request
    Each layer that retries N times makes up to N + 1 attempts; stacked layers multiply.
  3. Check whether health checks and autoscaling are removing capacity while it is busy.

    Shell
    kubectl get events -n shop --field-selector reason=Unhealthy | tail -20
    kubectl get pods -n shop -l app=payments -o wide | grep -c Running

The causes, ranked

Most common first. The ranking is a judgement from how these failures usually turn out, not a measured statistic.

Most common

1. Retries multiply every failure

What it looks like

  • Traffic at the service is several times user demand, and rises as the error rate rises.
  • Errors are fast (overload rejections or timeouts), and the same requests appear again and again in logs.
  • Recovery briefly starts, errors fall, then traffic rushes back in and it collapses again.

How to confirm it

Read the retry settings at every layer between the user and the service: client libraries, gateways, service meshes, application code. Count attempts per user request. A retry that fires immediately, with no backoff and no jitter, arrives exactly when the service is least able to take it. Check also how errors are reported: if an overload response looks like a transient server error, every caller will treat it as retriable.

Fix it now

Turn off retries at inner layers, keep at most one layer retrying, and shed load at the front: rate limit, or return 503 or 429 with Retry-After so well-behaved clients wait. Then let the service recover with traffic below its capacity.

Java
// Resilience4j: few attempts, exponential backoff with jitter
RetryConfig config = RetryConfig.custom()
    .maxAttempts(3)
    .intervalFunction(IntervalFunction.ofExponentialRandomBackoff(200, 2.0, 0.5))
    .build();

Prevent it

Retry at one layer only, with exponential backoff and jitter and a retry budget (a cap on retries as a share of requests). Treat errors that mean 'overloaded' as non-retriable or retry them only after a long delay.

Most common

2. Everyone reconnects at the same moment

What it looks like

  • The moment the service comes back, connection or login rates spike far above any normal minute.
  • Long-lived clients (mobile apps, websockets, devices) all lost their sessions together.
  • Restarting the service makes it worse, because every restart triggers another wave.

How to confirm it

Graph new connections, logins or registrations per second around each restart. A vertical spike at the instant of recovery is a herd. Look at what each reconnect costs, too: authentication, loading session state and subscribing to updates can make a reconnect many times more expensive than a normal request.

Fix it now

Admit clients gradually: a queue or waiting room, connection limits per instance, or bringing capacity back in stages. Avoid restarting everything at once.

Prevent it

Give clients randomised reconnect delays with exponential backoff, keep sessions valid across server restarts where safe, and test recovery with the full client population, not a trickle.

Common

3. Caches are empty, so every request hits the database

What it looks like

  • The service recovered, but the database behind it is saturated.
  • Cache hit ratio is near zero after the restart and climbs only slowly.
  • Database queries time out, so results never reach the cache, and the hit ratio stays low.

How to confirm it

Compare cache hit ratio and database load before the outage and after recovery. If the database cannot serve the full miss rate, the cache can never warm up under live traffic. The trap is that the system is stable only when the cache is warm, and nothing in normal operation ever tests the cold state.

Fix it now

Warm the cache before taking full traffic, coalesce identical misses so one request fetches while others wait, and serve stale entries where acceptable.

Prevent it

Restart cache nodes a few at a time, add jitter to TTLs, and check that the database can survive the cache being empty, or that you can limit traffic until it fills.

Common

4. A backlog replays all at once

What it looks like

  • Queues, retries and scheduled jobs that missed their runs all start together after recovery.
  • Consumers process work for users who gave up long ago.
  • The second wave of load is larger than the original outage's traffic.

How to confirm it

Look at queue depth and the age of the oldest message. Count scheduled jobs that are catching up. If consumers scale up automatically on queue depth, they may now be sending far more traffic to a shared database than it ever sees in normal operation.

Fix it now

Cap consumer concurrency, drop or deprioritise work that is no longer useful (requests older than the client's timeout), and process fresh work before old work where order does not matter.

Prevent it

Give messages a deadline, make catch-up of missed scheduled runs explicit rather than automatic, and rate-limit replay.

Less common

5. Health checks and autoscaling remove capacity under load

What it looks like

  • Busy instances fail liveness or readiness checks and are restarted or removed, so the rest get even more load.
  • The number of ready instances falls during the incident although nothing crashed.
  • Autoscaling adds instances that start, fail their checks under load, and are replaced.

How to confirm it

Check probe failures and restarts during the incident. A liveness probe that times out under load turns slowness into restarts.

Fix it now

Relax liveness timeouts, keep liveness shallow, and pin a minimum number of replicas while recovering so capacity is not being removed. If a load balancer is ejecting busy instances, consider temporarily widening its failure thresholds so the instances that are working keep receiving a share of traffic.

Prevent it

Probe readiness and liveness separately, give probes timeouts that tolerate load, and test probe behaviour under overload.

Less common

6. Timeouts make the service do work nobody waits for

What it looks like

  • Callers time out and retry, but the service keeps working on the original request.
  • The service's own timeouts to its dependencies are longer than its callers' timeouts.
  • No circuit breaker: calls to a failing dependency keep being made at full rate.

How to confirm it

Lay out the timeout at each hop. If an inner hop waits longer than the hop calling it, its work is wasted every time the outer one gives up.

Fix it now

Shorten inner timeouts below outer ones, and open a circuit breaker on dependencies that are failing so calls fail fast instead of queueing. Watch for queues inside the service, such as thread pool or connection pool queues, where requests wait long after their caller has stopped listening.

Prevent it

Propagate deadlines through the call chain, and stop work when the caller has gone. Test the whole chain under overload, not each service in isolation.

See it happen in a real outage

90-second puzzles built from public postmortems. Diagnose it first; the company is revealed after you answer.

Related concepts

FAQ

What is a retry storm?

Failed requests are retried, the retries add load, more requests fail, and those are retried too. With several layers each retrying, one user request can become dozens of attempts, keeping a service down after the original fault is gone.

How do I stop a thundering herd after an outage?

Spread clients out: randomised reconnect delays on the client side, and admission control on the server side, such as a queue, connection limits or bringing capacity back in stages.

Should I add more servers when a service won't recover?

Only after cutting the amplified load. If retries and reconnects multiply traffic many times, new instances fill up too; shedding load and stopping retries usually restores service faster.

All troubleshooting guides

Reference documentation: AWS Builders' Library: timeouts, retries and backoff with jitter ↗ · Google SRE book: handling overload ↗ · Resilience4j documentation: Retry ↗ · Report a problem

Commands and settings are checked against the documentation linked above. Defaults change between versions; check the documentation for the version you run.