django-planet
Jan. 2, 2024

No Downtime Deployments with Gunicorn

published by Anže
in blog Anže’s Blog
original entry No Downtime Deployments with Gunicorn

This article shows how to achieve zero-downtime deploys of your Django, Flaks, or FastAPI app using only Gunicorn. It explains how to reload the Gunicorn process with the -HUP signal using systemd or the kill command directly making sure no requests are dropped during the upgrade.