solved 2026-10-18 1996 views 35 votes

Docker multi-stage and wheel cache mounts

@rina_lab79
Junior Python Dev

Hit this after a routine bump.

Symptom: Docker multi-stage and wheel cache mounts

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?

8 replies

@raul
2026-10-18 18:35 UTC · 1 votes

minimal repro with ASGITransport would help more than screenshots.

@raul
2026-10-19 12:22 UTC · 4 votes

marking solved after we pinned the dependency and re-smoked /docs.

@jon_async
2026-10-20 05:38 UTC · 1 votes

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

@oz
2026-10-20 09:05 UTC · 1 votes

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

@rina_lab79
2026-10-20 22:44 UTC · 2 votes

paste engine kwargs and max_connections. worker×pool is the usual culprit.

@ina
2026-10-21 11:25 UTC · 4 votes

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

@omar
2026-11-22 22:58 UTC · 2 votes

we fixed the same class of bug by moving Engine creation into lifespan.

@eng_1014_22
2026-11-23 12:59 UTC · 4 votes

middleware that opens DB sessions will bite you under load.

Reply

Login or register to reply.