- Database: MySQL, PG.
- Migrated Objects: database(mysql), schema(pg), table, comment, index, sequence(pg), constraints.
Refer to task templates and tutorial
Structure migration is executed serially in a single thread. Notice the following configurations:
[extractor]
extract_type=struct
[sinker]
sink_type=struct
batch_size=1
[parallelizer]
parallel_type=serial
parallel_size=1
Failure strategy: interrupt(default), ignore.
-
interrupt: If a particular migration fails, the entire task will be terminated immediately.
-
ignore: If a migration fails, it will not affect the migration of other schemas, and the process will continue. However, the failure will be logged as an error.
[sinker]
conflict_policy=interrupt
In a complete data migration process that includes both structure migration and data migration, the task will be divided into three stages in order to accelerate data migration:
- Migrate table structures + primary/unique keys ( necessities for data migration);
- Data migration;
- Migrate indexes + constraints.
Thus, we offer 2 types of filtering:
[filter]
do_structures=database,table
[filter]
do_structures=constraint,index