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.
It's as simple as
`pkill -f --signal HUP "gunicorn: master \[procname\]"`
[1] https://gunicorn-docs.readthedocs.org/en/latest/faq.html?hig...