@nik
2026-10-06 03:53 UTC · 5 votes
that traceback looks like Engine created per request — move it to lifespan.
Hit this after a routine bump.
Symptom: Pydantic Settings secrets from Docker secrets file — follow-up #5
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.
measure with keep-alive on; cold connects inflate p99.
orjson helped CPU a few percent; DB still the ceiling.
orjson helped CPU a few percent; DB still the ceiling.