-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Cut-off transaction is very slow, leading to downtimes in production[Question] #1191
Comments
👋 @Shukla-Ankur the cut-over step is a complicated process which requires coordination between a few different operations to ensure that the table cut-over happens atomically - and as a result, it takes some time to complete. The times you are seeing are normal, this is a sample of cutover times for some of our recent schema migrations (on both very small and very large tables):
We'd certainly welcome any PRs with optimisations that reduce the cut-over time whilst maintaining it as a safe, atomic operation. That being said: we find these times to be acceptable to our needs, and we regularly perform online schema migrations using gh-ost whilst our services remain up and in-use by customers 😄 |
MySql v8.0.23
`2022-10-19 07:53:14 INFO Lock & rename duration: 1.017494674s. During this time, queries on entity were blocked
2022-10-19 07:21:28 INFO Lock & rename duration: 1.042562025s. During this time, queries on entity were blocked
2022-10-19 07:50:31 INFO Lock & rename duration: 2.022935482s. During this time, queries on entity were blocked
2022-10-19 07:45:12 INFO Lock & rename duration: 2.020735566s. During this time, queries on entity were blocked
2022-10-19 07:42:29 INFO Lock & rename duration: 1.01602586s. During this time, queries on entity were blocked`
The text was updated successfully, but these errors were encountered: