Checkout requests failing with 5xx and slow responses
SEV1 INC-2291 Identified
Root cause hypothesis
Confidence: highAbout 2.1 % of checkout requests return 502 or 504 and p95 latency went from 410 ms to 1.24 s.
Release v4.18.0 raised the connection pool from 20 to 60 per pod. With 8 pods the service now asks for 480 connections while pg-orders-primary accepts 500 in total, leaving none for payments-worker and the replication slots. Requests queue on pool acquisition until they time out.
Impact analysis
- Failed checkouts
- 2.1 %
- of 310 req/s, about 6.5 failed requests per second
- Latency p95
- 1.24 s
- against a 800 ms objective
- Orders at risk
- ≈ 3 900
- carts that reached payment in the last 34 min
- Error budget burned
- 11 %
- of the monthly budget of checkout-api
Event timeline
newest first · UTC
-
·
Resolution notes
-
·
No note yet. Write what was tried, what worked and what is left to follow up.
Details
- Detected
- Resolved
- Assigned engineer
- TOTomás Okafor
- Incident commander
- Maya Lindqvist
- Suspected release
- DEP-5121
Affected services
Related alerts 3
Alert center-
Critical ALT-8842 Firing
Connection saturation on pg-orders-primary
Connections 97 % · threshold > 90 %
-
Critical ALT-8841 Firing
5xx error rate on checkout-api
Error rate 2.10 % · threshold > 1 %
-
Warning ALT-8839 Acknowledged
p95 latency on checkout-api
Latency p95 1.24 s · threshold > 800 ms