orjson helped cpu a few percent; db still the ceiling.
How do you version OpenAPI without breaking clients? — follow-up #6
Hit this after a routine bump.
Symptom: How do you version OpenAPI without breaking clients? — follow-up #6
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?
11 replies
minimal repro with ASGITransport would help more than screenshots.
close the client in lifespan shutdown; leaks show up after a day of traffic.
orjson helped cpu a few percent; db still the ceiling.
minimal repro with ASGITransport would help more than screenshots.
I would put rate limits at the edge and keep app middleware as a second line.
orjson helped CPU a few percent; DB still the ceiling.
dropping pool_size per worker fixed it for us on the same box size.
check proxy_read_timeout before blaming uvicorn resets.
we fixed the same class of bug by moving Engine creation into lifespan.
measure p99 with keep-alive; cold connects lie.