Ledgerline · Incident reviewINC-2291 · Sev 2 · Closed
2026-11-18Tuesday14:02 UTCChange deployed14:49 UTCBack under SLO

Checkout p95 rose from 210 ms to 840 ms after a pool-size change

Payments stayed correct. Some customers saw timeouts and retried. This review covers the cause, the fix and five follow-ups.

47 minAbove the 300 ms SLO
2,140Checkouts timed out (3.1%)
0Duplicate charges
p95 checkout latency, ms13:40–15:20 UTC
14:02 deploy v412
14:41 rollback
Ledgerline · Incident reviewTimeline · all times UTC

Detected in 4 minutes, mitigated in 39: most of the time went to diagnosis

14:02Change

v412 lowers the pool cap from 64 to 16 per pod

14:06Detect

Burn-rate alert: p95 above SLO at 14× budget

14:11Respond

On-call acknowledges; database dashboards look healthy

14:24Respond

Query time normal; search moves to the app tier

14:33Diagnose

Pool wait at 610 ms p95 identified as the source

14:41Mitigate

Rollback to v411 starts across 48 pods

14:49Resolve

p95 under 300 ms; closed at 15:05 after soak

4 minTime to detect
39 minTime to mitigate
47 minTime to resolve
Ledgerline · Incident reviewRequest path · p95 during the incident

Pool wait, not the database, took 610 of the 840 ms

Client SDK

Web and mobile checkout

18 msnetwork · was 17

API gateway

Auth and rate limits

12 mswas 11

checkout-api

48 pods, v412

38 mswas 36

Connection pool

16 per pod, all in use

610 mswait · was 2

Postgres primary

Orders and ledger

22 msquery · was 21

Card network

140 msunchanged
Where the 840 ms wentp95, 14:02–14:41 UTC
Pool wait 610Card network 140App 38Postgres 22Client 18Gateway 12
Ledgerline · Incident reviewEvidence · p95 checkout latency

After the rollback, p95 settled at 205 ms, below the 300 ms SLO

Before13:00–14:02During14:02–14:49After14:49–16:00
Pool and database, p95
MetricBeforeDuringAfter
Pool wait2 ms610 ms3 ms
Connections in use41 / 6416 / 1639 / 64
Query time21 ms22 ms20 ms
Error rate0.02%3.1%0.02%
Ledgerline · Incident reviewDecision · connection management

Keep 64 connections now and move to transaction pooling in Q1

OptionGainsCostsDecision
Restore 64 per podImmediate headroom on a proven setting3,072 server connections at peak, close to the 3,500 Postgres limitDone, Nov 18
PgBouncer transaction poolingAll pods share 400 server connections, so pod count stops matteringAdvisory locks in the refund job need a rewriteAdopt in Q1
Larger Postgres instanceHigher connection limit+$9,800 a month and pool sizing per pod stays fragileRejected
Postgres server connections at peak with 64 per podscale 0–4,000
48 pods today: 3,072Limit 3,50056 pods: 3,584
Ledgerline · Incident reviewFollow-ups

Five follow-ups: two done, three due by March

ActionOwnerDueStatus
Alert on pool wait above 50 msM. Okafor, SRENov 22Done
Load-test pool settings before deployR. Iyer, PaymentsNov 29Done
Two reviewers for pool-size changesA. Novak, PlatformDec 6In progress
Runbook: latency up, database healthyM. Okafor, SREDec 13In progress
Move checkout-api to PgBouncerS. Lindqvist, PlatformMar 14, 2027Not started