discussion 2026-10-04 1014 views 13 votes

Should healthcheck hit Redis or only process?

@seth
SRE

Hit this after a routine bump.

Symptom: Should healthcheck hit Redis or only process?

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?

6 replies

@oz
2026-10-05 06:50 UTC · 5 votes

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

@raul
2026-10-06 01:13 UTC · 0 votes

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

@leda
2026-10-06 18:42 UTC · 9 votes

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

@leda
2026-10-07 12:54 UTC · 7 votes

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

@eng_1012_82
2026-11-22 21:58 UTC · 1 votes

if upstream resets, look at proxy_read_timeout next.

@rine
2026-11-23 15:59 UTC · 2 votes

middleware that opens DB sessions will bite you under load.

Reply

Login or register to reply.