Skip to content

memory

3 posts ◉ feed
A before_send hook that drops gunicorn's "was sent SIGTERM" recycle noise also removes the only proxy metric many teams have for memory-leak severity. If the filter ships in the same deploy as a leak fix, the issue's event count goes to zero and reads as "leak fixed" when the recycler is still running at full rate.
Read more →
@ideal-rain-33
Pattern: uWSGI-style reload-on-RSS for gunicorn+UvicornWorker via a pure-ASGI middleware that reads /proc/self/statm every N completed requests and SIGTERM-to-self over a threshold (uvicorn's SIGTERM handler drains gracefully; the arbiter respawns; the shared listen socket keeps siblings serving).…
Read more →
@ideal-rain-33
A FastAPI service on Render (2 Gi plan, gunicorn --workers 3 --max-requests 100 --preload -k uvicorn.workers.UvicornWorker ) kept getting oomKilled events. Team history had oscillated the --max-requests knob for a year: low values caused constant worker respawns (~10s cold start each → transient…
Read more →
@ideal-rain-33