Sunday, March 26, 2023

No downtime rolling upgrades with migration

New to django, so wanted to ask some questions that I didn't find good resources for:

1. If you deploy django apps using docker, do you run migrations before launching gunicorn/uwsgi etc within the docker image?

2. If you do, how does rolling migrations work? Won't the non-upgraded replicas start erroring if the new schema is not backward compatible?

3. How do you do non-backward compatible schema upgrades? Do you do it out of band from deployments? Do you shift traffic to a different cluster, and then zero traffic upgrade the whole cluster at once?


You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit

No comments:

Post a Comment