[Answered ]-What happens to a Django website when you restart Gunicorn?

2👍

As long as you don’t restart gunicorn by physically cutting the power to the server, the OS will give it the chance to shut down normally. That means that all current views will complete and all open transactions will finish.

Assuming you are using a reverse proxy like nginx in front, and you start gunicorn again immediately, users will be unlikely to notice: the request might take a fraction of a second longer, that’s all.

Sessions are stored in files or the database so will be unaffected.

Leave a comment