@kai_sre
2026-09-28 11:24 UTC · 6 votes
check proxy_read_timeout before blaming uvicorn resets.
Hit this after a routine bump.
Symptom: asyncpg statement cache size for 50 endpoints — follow-up #8
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?
check proxy_read_timeout before blaming uvicorn resets.
minimal repro with ASGITransport would help more than screenshots.
dropping pool_size per worker fixed it for us on the same box size.
orjson helped cpu a few percent; db still the ceiling.
measure with keep-alive on; cold connects inflate p99.
measure with keep-alive on; cold connects inflate p99.