Post-Migration Cleanup¶
Caution
Before deprecating MSR 2.9 or MSR 3.1, run the migration one last time to ensure all data has been transferred.
When you no longer plan to push data to your MSR 2.9 or MSR 3.1 instances, you can remove the replication schedules:
Remove the trigger of replication rules:
docker run \ -v ./data/sql:/app/data/sql \ -v ./data/csv:/app/data/csv \ -v ./config:/app/config \ --network host \ registry.mirantis.com/msrh/migrate:latest poetry run migration --remove-replication-rules-trigger
Check your Replications service dashboard to verify if they were switched to manual.
Delete all replication rules created for the migration, use the
--delete-migration-rules
option. This removes all rules prefixed withmigration-rule-
.docker run \ -v ./data/sql:/app/data/sql \ -v ./data/csv:/app/data/csv \ -v ./config:/app/config \ --network host \ registry.mirantis.com/msrh/migrate:latest poetry run migration --delete-migration-rules
Additional considerations
Re-running the script with --trigger-replication-rules
re-enables
scheduled execution for all migration-rule replication rules. The schedule
is defined by the REPLICATION_TRIGGER_CRON
environment variable.
Use the appropriate command-line flags based on the replication policy type:
--trigger-push-replication-rules
and--remove-push-replication-rules-trigger
for push policies--trigger-pull-replication-rules
and--remove-pull-replication-rules-trigger
for pull policies
Before performing any deprecating operations, use
--export-all-replication-rules
to back up all replication rules from
the replication_policy
table in MSR 4.