@mei
2026-10-31 19:07 UTC · 1 votes
that traceback looks like Engine created per request — move it to lifespan.
Hit this after a routine bump.
Symptom: Do you put rate limits in middleware or gateway? — follow-up #9
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?
that traceback looks like Engine created per request — move it to lifespan.
paste engine kwargs and max_connections. worker×pool is the usual culprit.
orjson helped CPU a few percent; DB still the ceiling.
orjson helped cpu a few percent; db still the ceiling.
paste engine kwargs and max_connections. worker×pool is the usual culprit.
dropping pool_size per worker fixed it for us on the same box size.
marking solved after we pinned the dependency and re-smoked /docs.
orjson helped CPU a few percent; DB still the ceiling.