discussion 2026-10-22 503 views 1 votes

Pydantic Settings secrets from Docker secrets file

@gabe
Senior Python Dev

Hit this after a routine bump.

Symptom: Pydantic Settings secrets from Docker secrets file

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?

5 replies

@gabe
2026-10-23 08:44 UTC · 3 votes

measure with keep-alive on; cold connects inflate p99.

@helen_go
2026-10-24 03:13 UTC · 9 votes

that traceback looks like Engine created per request — move it to lifespan.

@seth
2026-10-24 06:42 UTC · 8 votes

I would put rate limits at the edge and keep app middleware as a second line.

@omar
2026-10-24 21:22 UTC · 8 votes

measure with keep-alive on; cold connects inflate p99.

@piotr
2026-10-25 05:24 UTC · 10 votes

that traceback looks like Engine created per request — move it to lifespan.

Reply

Login or register to reply.