Cases1 case
1 to 1 of 1
IL-0483Replicate's website and API returned slow responses and HTTP 500s for two hours as PostgreSQL connections ran outReplicate2023- Symptoms
From 05:45 UTC on 11 May 2023, for about two hours, many Replicate customers got slow responses or HTTP 500 errors from the API and the replicate.com website and had trouble running predictions. Monitoring paged an engineer at 05:46 UTC, a minute after the database connection pool became fully saturated.
- Trigger
A little after 05:00 UTC on 11 May, normal variations in traffic pushed the stacking INSERT queries past their tipping point.
- Root cause
- Component
- Contributing factor
- Detection
Monitoring detected the saturated database connection pool almost immediately and paged an engineer at 05:46 UTC.
- Remediation
- Switched off all asynchronous prediction update features with a feature flag at 07:31 UTC, after which the database recovered
- Action items
- Keep the asynchronous prediction update feature disabled and redesign it so it no longer sends stacked INSERTs
- Review lock contention and other database hotspots that could cause similar problems
- Publish detailed reports after major incidents
- Lessons
The system ran in a degraded state that looked successful until it tipped into a full failure. The same asynchronous update work that triggered the outage also partly protected customers who used webhooks, and the stacked INSERTs came directly from a latency improvement: removing 100-150ms brought two updates of one prediction to the database almost together.
This case involves Database. kubegap audits a Kubernetes cluster for gaps like these, read-only, from Claude Code or Codex; its checks cite public reports like the ones in this library.
By root cause1
Faulty deployment1 case
- Component
- Contributing factor
- Organisation