Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent parallel backend instances during database migrations #3205

Open
chaoran-chen opened this issue Nov 12, 2024 · 0 comments
Open

Prevent parallel backend instances during database migrations #3205

chaoran-chen opened this issue Nov 12, 2024 · 0 comments
Labels
deployment Code changes targetting the deployment infrastructure

Comments

@chaoran-chen
Copy link
Member

chaoran-chen commented Nov 12, 2024

Originally brought up in #3125:

When we deploy a new version, Kubernetes will usually do a rolling update where it first starts the new backend and then shuts down the old one, right? If yes, this means that if we do a database migration, the old backend could write values into the database that are inconsistent with the new database version and thereby put the database into an invalid state. Can we somehow avoid having two parallel running backends (at least) if there is a database migration?

@chaoran-chen chaoran-chen added the deployment Code changes targetting the deployment infrastructure label Nov 12, 2024
@chaoran-chen chaoran-chen added this to the Priority 1 (highest) milestone Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployment Code changes targetting the deployment infrastructure
Projects
Status: No status
Development

No branches or pull requests

1 participant