2 ms·
But if both processes are listening on the same port, how would he check the health of only the new process?? How do you determine which process answers each in
by abrookewood 11y ago
But if both processes are listening on the same port, how would he check the health of only the new process?? How do you determine which process answers each incoming connection?
- andy_ppp 11y agoWill the old processes not be successfully killed and the new processes just take over? Healthwise supervisor would be the one checking the gunicorn processes? Looking at this article is just seems to make ports operate either with any new server initialisation just automatically takes over the port (or maybe they become effectively load balanced between all running processes, it's hard to tell conclusively)... http://freeprogrammersblog.vhex.net/post/linux-39-introdued-new-way-of-writing-socket-servers/2 http://freeprogrammersblog.vhex.net/post/linux-39-introdued-...
- smilliken 11y agoYou can keep both the new and old process running concurrently as long as you like, and they'll both be responding to requests. You can run your health checks at this time (perhaps distinguishing the process with a header). When you're confident, send a signal to the old process to gracefully exit.