3 ms·
Rather than killing Gunicorn's child processes, I prefer to send SIGHUP to the master process.[1] It's as simple as `pkill -f --signal HUP "gunicorn: master \
by buttscicles 13y ago
Rather than killing Gunicorn's child processes, I prefer to send SIGHUP to the master process.[1]
It's as simple as
`pkill -f --signal HUP "gunicorn: master \[procname\]"`
[1] https://gunicorn-docs.readthedocs.org/en/latest/faq.html?highlight=HUP#how-do-i-reload-my-application-in-gunicorn https://gunicorn-docs.readthedocs.org/en/latest/faq.html?hig...
- philipcristiano 13y agoThe issue with that is that it tends to stop all the workers then start them again, not one-by-one. Since some applications can take a minute to start that leaves the socket open but won't start accepting connections until the workers start again.