News for hackers. Stuff that matters.
Re:Deploying Python Without Downtime by buttscicles on Thursday June 27, 2013 @07:13AM (#5951670)
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?hig...

Re:Deploying Python Without Downtime by philipcristiano on Thursday June 27, 2013 @07:56AM (#5951817)
The 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.