Skip to content
All outages

Incident · Medium · Databases

Two billion transactions later

  • SEV1
  • MONDAY
  • WRITES REFUSED
90s

The situation

Your error-tracking service writes constantly into a large Postgres database, including one huge table with a row per event. Autovacuum is tuned to be aggressive. On Monday morning the primary suddenly refuses all writes, though disk, CPU and replication are fine and reads still work. You fail over to bigger hardware; it refuses writes too.

The evidence

Logs and signalsReconstructed
Mon postgres: WARNING: database must be vacuumed soon to avoid wraparound
Mon postgres: ERROR: database is not accepting commands to avoid wraparound data loss
Mon disk ok; CPU ok; replicas serving reads
Mon failover to new primary (2× memory): same error
Mon autovacuum: freezing large table… still running after several hours

Your call

Why has the database stopped accepting writes?

Charts and logs are reconstructions. Aim for 90 seconds; going over costs nothing.

Last reviewed: Official postmortem· linked after you answer