Sunday, March 26, 2023

Re: No downtime rolling upgrades with migration

Hello,

Please read my reply below.

Best of luck.

Regards

On Sun, 26 Mar 2023, 21:17 Sandip Bhattacharya, <sandipb@showmethesource.org> wrote:
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?
Daman:This is all upto you. Better to do when creating container. As you can also upgrade from git. 

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?
Daman:Create blue green deployment.

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?

Daman: Blue Green deployment can help. You can distribute traffic to old and new. When all stable then move everything. You can use kubernetes with helm.


Thanks,
  Sandip

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/A9719D24-F6DA-45A6-A30A-EA8EA34754A1%40showmethesource.org.

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAGLHGi5p9MgPyhKs-x%3D_84CGhjcQNy70mQGJK-v8rBi5m3znTA%40mail.gmail.com.

No comments:

Post a Comment