Flash, metrics outage
The first metrics call is made to fail, so the agent has to recover.
agent.run
- Duration
- 8.55s
- Started
- +0ms
- Model
- deepseek-flash
Output
Root cause: payments-api deploy v2.14.0 at 14:12 (jun) — "Refactor DB config; pool size now read from POOL_MAX (default 5, was hardcoded 50)". The pool collapsed from ~34 connections to 5, so requests queue for connections.
Evidence:
- Deploy log 14:12: started v2.14.0, db pool max=5
- 14:14 warn: db pool saturated: 5/5 in use, 41 waiting
- db_connections_in_use flatlines at exactly 5 from 14:15 onward (was 33–36)
- payments-api p95: 125ms → 2410ms (14:20) → ~3900ms; errors 0% → 12%
- checkout-web p95: 320ms → 2840ms (14:20) → ~4300ms — downstream propagation
- Runbook confirms: latency up with flat DB load = pool exhaustion; Postgres max_connections 200, so 50/service is safe.
Immediate action: Roll back payments-api to the prior version (or set POOL_MAX=50 and restart). Rollback is fastest and safest. Then verify pool returns to ~34 and p95 recovers.
Input
Checkout latency spiked around 14:20 today. Find the root cause and recommend what to do right now.