skip to content
your name
post-mortem1 min

Queue backpressure during regional failover

An illustrative post-mortem demonstrating header facts, incident timelines, and code blocks.

status
resolved
duration
42m
impact
elevated p99 latency
systems
router · worker pool

This sample document shows how pm entries format incident metadata and chronologies. Replace the sample src/content/docs/*.mdx files with your own notes, post-mortems, and architecture decision records.

Retries without an explicit deadline or concurrency budget turn partial capacity loss into a self-inflicted overload.

  1. 14:02+00:00
    trigger
    Primary zone health checks fail and traffic shifts to secondary capacity
  2. 14:09+07:00
    symptom
    Worker queue depth crosses threshold as retry storms amplify load
  3. 14:21+19:00
    mitigation
    Admission limiter enabled at router edge to cap in-flight requests
  4. 14:44+42:00
    Queue drains and p99 latency returns to baseline

Capping per-route queue depth and failing fast when the shared request budget expires prevents retry amplification:

ts
export function shouldAdmit(inFlight: number, maxInFlight: number, remainingMs: number): boolean {
  return remainingMs > 50 && inFlight < maxInFlight;
}
  • Enforce a single end-to-end deadline header across caller and worker hops.
  • Alert on queue wait time in addition to error rate so backpressure surfaces early.