API: elevated 5xx errors after deploy
A deploy raised the API's database connection pool above what the primary would accept. About 38% of requests failed for 26 minutes.
Timeline
All times UTC, November 3, 2025.
- Deploy. Release 2025.11.1 begins rolling out to the API tier.
- Monitoring. Error rate on /v1 crosses 5% and climbs to 38% as the new instances come up.
- Investigating. Priya Nair finds
too many connectionserrors in the database log. The new release sets the pool size per worker, not per instance. - Mitigating. Rollback of release 2025.11.1 started.
- Resolved. Error rate back to baseline. Control plane job launches, which queue through the same database, were unaffected.
Postmortem
The release changed the connection pool setting from a per-instance to a per-worker value. With 6 workers per instance and 8 instances, the API tried to open 4x the connections the primary was configured for. Staging has fewer instances, so it did not show up. Actions: a connection-count check in the deploy pipeline (done); a pgbouncer layer in front of the primary (done, 2025-11-20); load-test stage with production worker counts (done). SLA credits of 10% were applied to all accounts that made API calls in November.