Failure Lab · incident

Database Outage

The primary database stops answering. Every page that needs data fails. Restore service without making things worse.

CriticalIntermediate
Loading the incident…

The incident, in text

Pager: "Error rate 100% on /api/*". The application servers are up and answering, but every request that touches data fails.

The database sits behind a small proxy that health-checks it. A standby replica receives the primary’s changes asynchronously but is not serving traffic.

Symptoms

  • · Almost every request fails
  • · App servers are healthy and mostly idle
  • · Database proxy reports no healthy backend

The system

  • · Users
  • · Load Balancer
  • · App 1
  • · App 2
  • · Standby app
  • · DB Proxy
  • · Primary DB
  • · Standby DB

The postmortem is revealed after you respond to the incident.