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
I would love to see a new MigrationState, called RUNNING (or equivalent). The idea behind this would be so I can check if someone has started database migration. If the database migration has been started I can show the user a "Down for maintenance" page, I can stop any cronjobs that interact with the database, etc, and thus keep the consistent state of the data in the db.
The text was updated successfully, but these errors were encountered:
Thanks for your suggestion. This is something I tried to implement a while ago and failed. It is quite tricky once multiple nodes are involved, as the concurrency is managed by a lock. Once you commit the state, the lock is released.
So yes, I'm in favor of this, but I suspect it will be either very hard or impossible to achieve. I'll leave the issue open for now. Pull request welcome.
Oh, that sounds not so promising. I would imagine it gets really complicated once multiple nodes are involved, but (and i'm really lame-speaking here), can it not be done one node at a time. Say you mark the status as RUNNING, when you start migration of node1. At that time all the other nodes should be working fine, then when node1 is finished, you move to node2, etc.. until all the nodes are done, and then we mark the status as FINISHED. Again, I've probably understood it completely wrong, but it seems to me this should be the way to go.
Hi guys,
I would love to see a new MigrationState, called RUNNING (or equivalent). The idea behind this would be so I can check if someone has started database migration. If the database migration has been started I can show the user a "Down for maintenance" page, I can stop any cronjobs that interact with the database, etc, and thus keep the consistent state of the data in the db.
The text was updated successfully, but these errors were encountered: