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 wraparoundMon postgres: ERROR: database is not accepting commands to avoid wraparound data lossMon disk ok; CPU ok; replicas serving readsMon failover to new primary (2× memory): same errorMon 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.