DTS data synchronization lets you set up synchronization tasks in a few steps through the new console.
Usage notes
This topic covers the general data synchronization procedure. Steps may vary by topology. Topology-specific instructions are in Overview of data synchronization scenarios.
This topic uses a one-way synchronization between RDS for MySQL instances (configured before purchase) as an example. Actual console parameters may differ.
Prerequisites
-
If the source or destination is a self-managed database, complete the Preparations to meet DTS environment requirements.
-
Create source and destination database instances supported by DTS. Supported databases and versions are listed in Overview of data synchronization scenarios.
Procedure
Go to the data synchronization task list page in the destination region. You can do this in one of two ways.
DTS console
Log on to the DTS console.
In the navigation pane on the left, click Data Synchronization.
In the upper-left corner of the page, select the region where the synchronization instance is located.
DMS console
NoteThe actual steps may vary depending on the mode and layout of the DMS console. For more information, see Simple mode console and Customize DMS console layout and style.
Log on to the DMS console.
In the top menu bar, choose .
To the right of Data Synchronization Tasks, select the region of the synchronization instance.
Click Create Task to open the task configuration page.
Optional: In the upper-right corner of the page, click New Configuration Page.
NoteIf you are already on the new configuration page (the button in the upper-right corner is Back to Previous Version), you can skip this step.
Some parameters differ between the new and old configuration pages. We recommend using the new version.
-
Configure the source and destination databases.
WarningAfter you select the source and destination instances, review the Limits at the top of the page. Otherwise, the task may fail or data inconsistency may occur.
Category
Configuration
Description
None
Task Name
DTS automatically generates a task name. We recommend that you specify a descriptive name for easy identification. The name does not need to be unique.
Source Database
Select Existing Connection
For this example, leave this blank and enter the database details below.
Database Type
Select MySQL.
Access Method
Select Alibaba Cloud Instance.
Instance Region
Select the region of the source ApsaraDB RDS for MySQL instance.
Replicate Data Across Alibaba Cloud Accounts
For this example, select No, as the database instance belongs to the current Alibaba Cloud account.
RDS Instance ID
Select the ID of the source ApsaraDB RDS for MySQL instance.
Database Account
Enter the database account of the source ApsaraDB RDS for MySQL instance. The account requires REPLICATION CLIENT, REPLICATION SLAVE, and SELECT permissions on the objects to synchronize.
Database Password
Enter the password for the specified database account.
Encryption
For this example, keep the default selection.
Destination Database
Select Existing Connection
For this example, leave this blank and enter the database details below.
Database Type
Select MySQL.
Access Method
Select Alibaba Cloud Instance.
Instance Region
Select the region of the destination ApsaraDB RDS for MySQL instance.
Replicate Data Across Alibaba Cloud Accounts
For this example, select No, as the database instance belongs to the current Alibaba Cloud account.
RDS Instance ID
Select the ID of the destination ApsaraDB RDS for MySQL instance.
Database Account
Enter the database account of the destination ApsaraDB RDS for MySQL instance. The account must have read and write permissions.
Database Password
Enter the password for the specified database account.
Encryption
For this example, keep the default selection.
After completing the configuration, click Test Connectivity and Proceed at the bottom of the page.
NoteEnsure that you add the CIDR blocks of the DTS servers (either automatically or manually) to the security settings of both the source and destination databases to allow access. For more information, see Add the IP address whitelist of DTS servers.
If the source or destination is a self-managed database (i.e., the Access Method is not Alibaba Cloud Instance), you must also click Test Connectivity in the CIDR Blocks of DTS Servers dialog box.
-
Configure the task objects.
-
On the Configure Objects page, specify the objects to synchronize.
In this example, select Schema Synchronization, Full Data Synchronization, and Incremental Data Synchronization under Synchronization Types. In the Source Objects box select the objects to synchronize. Keep the defaults or adjust as needed.
-
Click Next: Advanced Settings.
In this example, keep the defaults or configure as needed.
Click Data Verification to configure a data verification task.
To use the data verification feature, see Configure data verification.
-
Save the task and perform a precheck.
To view the parameters for configuring this instance via an API operation, hover over the Next: Save Task Settings and Precheck button and click Preview OpenAPI parameters in the tooltip.
If you have finished viewing the API parameters, click Next: Save Task Settings and Precheck at the bottom of the page.
NoteBefore a synchronization task starts, DTS performs a precheck. You can start the task only if the precheck passes.
If the precheck fails, click View Details next to the failed item, fix the issue as prompted, and then rerun the precheck.
If the precheck generates warnings:
For non-ignorable warning, click View Details next to the item, fix the issue as prompted, and run the precheck again.
For ignorable warnings, you can bypass them by clicking Confirm Alert Details, then Ignore, and then OK. Finally, click Precheck Again to skip the warning and run the precheck again. Ignoring precheck warnings may lead to data inconsistencies and other business risks. Proceed with caution.
-
Purchase the instance.
When the Success Rate reaches 100%, click Next: Purchase Instance.
On the Purchase page, select the billing method and link specifications for the data synchronization instance. For more information, see the following table.
Category
Parameter
Description
New Instance Class
Billing Method
Subscription: You pay upfront for a specific duration. This is cost-effective for long-term, continuous tasks.
Pay-as-you-go: You are billed hourly for actual usage. This is ideal for short-term or test tasks, as you can release the instance at any time to save costs.
Resource Group Settings
The resource group to which the instance belongs. The default is default resource group. For more information, see What is Resource Management?.
Instance Class
DTS offers synchronization specifications at different performance levels that affect the synchronization rate. Select a specification based on your business requirements. For more information, see Data synchronization link specifications.
Subscription Duration
In subscription mode, select the duration and quantity of the instance. Monthly options range from 1 to 9 months. Yearly options include 1, 2, 3, or 5 years.
NoteThis option appears only when the billing method is Subscription.
Read and select the checkbox for Data Transmission Service (Pay-as-you-go) Service Terms.
Click Buy and Start, and then click OK in the OK dialog box.
You can monitor the task progress on the data synchronization page.
to move them to the Selected Objects box.