@leo_cache
2026-10-03 22:00 UTC · 0 votes
measure with keep-alive on; cold connects inflate p99.
Hit this after a routine bump.
Symptom: HTTP/2 upstream resets from uvicorn — checklist — follow-up #29
TimeoutError / pool exhausted / upstream reset
(versions in next reply if needed)
Env: Python 3.12, FastAPI recent, uvicorn workers≥2.
What should I check first?
measure with keep-alive on; cold connects inflate p99.
minimal repro with ASGITransport would help more than screenshots.
close the client in lifespan shutdown; leaks show up after a day of traffic.
dropping pool_size per worker fixed it for us on the same box size.
orjson helped CPU a few percent; DB still the ceiling.
paste engine kwargs and max_connections. worker×pool is the usual culprit.
paste engine kwargs and max_connections. worker×pool is the usual culprit.