Between 2:09 and 2:31 AM, 18% of checkouts in us-east-1 timed out. Deploy #1294 cut the checkout-api database pool from 50 to 10, and under peak load each checkout waited on a pooled connection until p99 latency reached 4.2s. AI SRE matched it to INC-4102 within four minutes, and restoring the pool in PR #1288 mitigated it.
🔍 Root cause
A config change in config/database.yml shipped with an unrelated batch-jobs tuning PR. The pool size lives in a shared file with no per-service review, and load tests run at 40% of peak, below where 10 connections saturate.
✅ What went well
The p99 alert paged the on-call engineer within two minutes.
AI SRE named the deploy and the line that changed before the call started.
The fix was a one-line revert, found with Claude Code and merged within ten minutes.
❌ What didn’t go well
The error-rate alert never fired; only latency did.
INC-4102 had the same cause, and its follow-up was still open.
Follow-ups
COM-1841Per-service review for database.ymlIn progress
COM-1842Load test checkout at 120% of peakTo do
COM-1843Page on checkout error rate above 2%Done
Priya S.9:12 AM
Can we link the load test numbers here? 40% of peak explains why staging never saw it.
Marco R.9:20 AM
Added. Also worth calling out INC-4102, same root cause in March.
Dana K.9:31 AM
Agree. I’ll own the per-service review for database.yml.
⌥⌘1✳ Claude Code
Claude Codev2.1.330Opus 5.5 · API Usage Billing~/checkout-api
CheckoutLatencyHigh fired at 2:11 AM: p99 on POST /api/checkout reached 4.2s. About 18% of checkouts in us-east-1 are timing out; eu-west-1 is unaffected.
Every failure is the same shape:
ActiveRecord::ConnectionTimeoutError: could not obtain a connection from the pool within 4.000 seconds
Why. Deploy #1294 at 2:09 AM set pool: 10 in config/database.yml. It was 50, so under peak load each checkout queues for a connection.
Seen before. INC-4102 in March had the same cause. Its follow-up is still open.
Next. PR #1288 restores the pool to 50 and is ready to merge.
✳Churning…Cooked for 52s
›What's going on with INC-2304?Try "fix lint errors"
? for shortcuts
2:12
Wednesday, October 14
2:12
checkout-api p99 latency above 4s
INC-2304 · SEV1 · You're on call for Commerce. AI SRE is investigating.
now
SEV1 1m
Checkout latency above 4s
Active
DetailsAlerts AI SRE
Investigating
Known facts gathered
Signal triaged
Hypotheses drafted
Latest activity
just now · 24 rows
Read logs for ConnectionTimeoutError
just now · 60 rows
Read metrics for checkout p99 latency
1m ago · 7 rows
Ran github list commits
OverviewEvidenceChain
Root causeGenerated just now
Deploy #1294 at 2:09 AM cut the checkout-api database pool from 50 to 10, so under peak load each checkout waits on a pooled connection and times out at 4s, failing 18% of orders in us-east-1.
82%Confidence
4mDuration
5Evidence
Summary
Cause chain · 4Confirmed Likely
Confirmed · 2:12Datadog
18% of checkouts in us-east-1 timing out
Confirmed · 2:11Datadog
p99 on POST /api/checkout reached 4.2s
Likely · 2:11CloudWatch
RDS connections held at 10 since the deploy
Root cause · 2:09GitHub
Deploy #1294 shipped: pool 50 → 10 in config/database.yml
#inc-2304-checkout-latency-above-4s
RootlyAGENT2:14 AM
The root cause is deploy #1294 at 2:09 AM, which set pool: 10 in config/database.yml. It was 50.
What failed exactly?
Checkout requests in us-east-1 wait for a database connection and time out at 4s, so 18% of orders never complete. eu-west-1 runs its own pool and is unaffected.
View investigationAsk a follow-up
Checking deploy #1294…Testing 5 hypotheses…Root cause found by AI SRE
RootlyAGENT2:14 AM
INC-4102 Checkout latency after pool change, Mar 3. Same service, same change; resolved in 18 min by restoring the pool.
INC-3877 Checkout timeouts in a flash sale, Jan 18. Connection waits under peak load.
INC-4102's follow-up, a per-service review of database.yml, is still open.
Searching 3 years of incidents…Related incidents found by Rootly
RootlyAGENT2:16 AM
Decision: freeze deploys to checkout-api until #1288 merges.
Action item: Priya S. to confirm EU checkout is unaffected.
Listening to the call with Scribe…Logged from the call by Scribe
Dana K.2:18 AM
Claude pulled the same through Rootly MCP. Merging #1288 to put the pool back to 50.
Marco R.2:19 AM
@Rootly catch me up. What did we decide on the call, and what's the customer impact?
RootlyAGENT2:20 AM
On the call, Marco froze deploys to checkout-api and Dana is merging #1288 to put the pool back to 50.
18.4% of checkouts in us-east-1 timed out: about 1,200 orders
380 of those customers retried and got through
Priya is confirming EU is unaffected.
Reading the Scribe transcript…Pulling checkout data…From the channel, Scribe and Datadog
Trusted every day by teams building world-class software.
How Superhuman's Security team made Rootly the central system for closing security incidents faster
Production intelligence that fuels every decision.
Atlas is the intelligent model that knows your environment, built from your tools, incident history, and the way you work. It's codified responder intuition that only gets smarter the more you use Rootly.
Catalog, Datadog, Sentry, …, Scribe, On-Call, Incident history, Retrospectives and Code and repos feed Rootly Atlas, which powers Alert grouping, Probable root cause, Suggested fixes, Escalations, Status page updates, Suggested actions, Action items, Insights and Patterns.
Marco R.Between 2:09 and 2:31 AM, 18% of checkouts in us-east-1 timed out.Deploy #1294 cut the checkout-api database pool from 50 to 10, and restoring it in PR #1288 mitigated the incident.
📊 Impact Drafting the impact…
22 minDuration
18%Checkouts failed
us-east-1Region
1,204Notified
⏱️ Timeline Drafting the timeline…
Deploy #1294 sets the checkout-api pool to 10.
p99 alert fires; Dana K. paged, SEV1 declared.
Dana acknowledges; Priya S. takes comms.
AI SRE names deploy #1294 and matches INC-4102.
Status page set to Degraded performance.
PR #1288 restores the pool to 50 and merges.
🔍 Root cause Drafting the root cause…
A config changePriya S. in config/database.yml shipped with an unrelated batch-jobs tuning PR. The pool size lives in a shared file with no per-service review, and load tests run at 40% of peak.
✅ What went well Drafting what went well…
The p99 alert paged the on-call engineer within two minutes.
AI SRE named the deploy and the line that changed before the call started.
Customers heard from us five minutes after the alert, from a drafted update.
⚠️ What went wrong Drafting what went wrong…
INC-4102 had the same cause, and its follow-up was still open.
Load tests at 40% of peak never reached the smaller pool's limit.
Atlas
Proactive intelligenceEarly access
Heard Priya say load tests stop at 40% of peak.Action item added
INC-4102's follow-up has been open for 14 days.Nudged Marco R.
Insights and patternsLast 90 days
What keeps breaking checkout?
Connection limit7
Pool config4
Retry storms2
7 of the last 10 checkout incidents trace to postgres-main's connection limit.
Can we link the load test numbers here? 40% of peak explains why staging never saw it.
Added. Also worth calling out INC-4102, same root cause in March.
Agree. I’ll own the per-service review for database.yml.