discussion 2026-09-28 1733 views 9 votes

Docker multi-stage and wheel cache mounts — follow-up #21

@cleo_dev29
Junior Python Dev

Hit this after a routine bump.

Symptom: Docker multi-stage and wheel cache mounts — follow-up #21

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

@helen_go
2026-09-29 08:20 UTC · 2 votes

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

@nox
2026-09-30 03:49 UTC · 2 votes

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

@elias
2026-09-30 11:09 UTC · 2 votes

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

@rina_lab79
2026-10-01 01:24 UTC · 3 votes

orjson helped CPU a few percent; DB still the ceiling.

@yuna
2026-10-01 16:44 UTC · 10 votes

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

@cleo_dev29
2026-10-02 10:44 UTC · 2 votes

orjson helped CPU a few percent; DB still the ceiling.

@raul
2026-10-02 16:25 UTC · 8 votes

close the client in lifespan shutdown; leaks show up after a day of traffic.

@vera_rs
2026-10-02 18:52 UTC · 3 votes

minimal repro with ASGITransport would help more than screenshots.

Reply

Login or register to reply.