You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I'm wondering whether this library takes care of a problem that we're currently having in production environments (it's a very common problem). What is happening:
In our kubernetes production cluster we have of a Deployment 2 replica pods running (that means that our server runs 2 instances for load balancing).
On every server startup we check if DB migrations need to be run
Now, if we release a new version including a new DB migration the 2 pods would simultaneously start & run the exact same DB migration. Which is not good because DB migrations should only run once.
This is especially a problem for migrations that take multiple seconds to finish.
Describe the solution you'd like
I honestly don't have a solution for this problem 🙂
Only thing I can say is that ideally this lib "knows" when a pod has already started a migration and doesn't start it again. Some of the "bigger" db migration tools take care of this.
Describe alternatives you've considered
None :(
Additional context
The text was updated successfully, but these errors were encountered:
@205g0 The other obvious solution is to always remove all pods except for 1 and then run the db migration in only that pod and then to start up all other pods again. Depending on your workload of the cluster this might not work for you though in production
Is your feature request related to a problem? Please describe.
I'm wondering whether this library takes care of a problem that we're currently having in production environments (it's a very common problem). What is happening:
This is especially a problem for migrations that take multiple seconds to finish.
Describe the solution you'd like
I honestly don't have a solution for this problem 🙂
Only thing I can say is that ideally this lib "knows" when a pod has already started a migration and doesn't start it again. Some of the "bigger" db migration tools take care of this.
Describe alternatives you've considered
None :(
Additional context
The text was updated successfully, but these errors were encountered: