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
We wish to introduce a new DDL strategy for Online DDL, termed mysql. A migration submitted with this strategy is managed, which means it is handled by the Online DDL scheduler. It goes through queued, ready, running, complete` phases. It can be retried or cancelled.
with this strategy it is impossible to CANCEL a running migration.
there is no progress indication to a migration.
ALTER migrations are non-revertible
ALTER migrations do not support --postpone-completion
ALTER migrations do not support --allow-concurrent
Use Case(s)
Some users will want to use MySQL as the engine because of:
Limitations to the vitess/gh-ost strategies, such as specific key requirements
To enforce running a migration as INSTANT or none at all (a migration submitted with ALTER TABLE ... ALGORITHM=INSTANT will fail if MySQL finds it impossible to apply the INSTANT algorithm)
As a failsafe mechanism
But those users will enjoy the managed aspect of the migration (as opposed to direct):
There is a record of the migration
It can be reviewed
It can be retried
The scheduler will resolve concurrency issues, will queue and run the migration in the appropriate time
All in all, it's yet another option we give the user to choose from.
The text was updated successfully, but these errors were encountered:
Feature Description
We wish to introduce a new DDL strategy for Online DDL, termed
mysql
. A migration submitted with this strategy is managed, which means it is handled by the Online DDL scheduler. It goes throughqueued
,ready
, running,
complete` phases. It can be retried or cancelled.But the execution itself of the migration, specifically for
ALTER TABLE
, it to run the command directly on MySQL. This could happen to be a non-blocking migration (e.g.ALTER TABLE t ADD COLUMN c INT DEFAULT 0, ALGORITHM=INSTANT
) or it could be a fully blocking operation. It's up to the specific query and the specific MySQL version running that query, as per https://dev.mysql.com/doc/refman/5.7/en/innodb-online-ddl-operations.html or https://dev.mysql.com/doc/refman/8.0/en/innodb-online-ddl-operations.html.Notes:
CANCEL
a running migration.ALTER
migrations are non-revertibleALTER
migrations do not support--postpone-completion
ALTER
migrations do not support--allow-concurrent
Use Case(s)
Some users will want to use MySQL as the engine because of:
vitess
/gh-ost
strategies, such as specific key requirementsINSTANT
or none at all (a migration submitted withALTER TABLE ... ALGORITHM=INSTANT
will fail if MySQL finds it impossible to apply theINSTANT
algorithm)But those users will enjoy the managed aspect of the migration (as opposed to
direct
):All in all, it's yet another option we give the user to choose from.
The text was updated successfully, but these errors were encountered: