The data synchronization feature of Data Transmission Service (DTS) is user-friendly. You can configure a data synchronization task in a few simple steps by using the new console.
User notes
This topic describes the general procedure for configuring a data synchronization task. The specific steps may vary slightly depending on the synchronization topology. For detailed instructions on a specific topology, refer to the relevant configuration guide in Overview of data synchronization scenarios.
This topic uses a one-way synchronization task between RDS for MySQL instances (configured before purchase) as an example. The parameters shown are for reference only and may differ from those on the console.
Prerequisites
If the source or destination database is a self-managed database, you must perform additional preparations to meet DTS environment requirements. For more information, see Preparations.
Create the source and destination database instances that are supported by DTS. For a list of supported databases and versions, see Overview of data synchronization scenarios.
Procedure
Use one of the following methods to go to the Data Synchronization page and select the region in which the data synchronization instance resides.
DTS console
Log on to the DTS console.
In the left-side navigation pane, click Data Synchronization.
In the upper-left corner of the page, select the region in which the data synchronization task resides.
DMS console
NoteThe actual operations may vary based on the mode and layout of the DMS console. For more information, see Simple mode and Customize the layout and style of the DMS console.
Log on to the DMS console.
In the top navigation bar, move the pointer over Data + AI and choose .
From the drop-down list to the right of Data Synchronization Tasks, select the region in which the data synchronization instance resides.
Click Create Task to go to the task configuration page.
Optional. Click New Configuration Page in the upper-right corner of the page.
NoteSkip this step if the Back to Previous Version button is displayed in the upper-right corner of the page.
Specific parameters in the new and previous versions of the configuration page may be different. We recommend that you use the new version of the configuration page.
Configure the source and destination databases. The following table describes the parameters.
WarningAfter you configure the source and destination databases, we recommend that you read the Limits that are displayed on the page. Otherwise, the task may fail or data inconsistency may occur.
Category
Configuration
Description
None
Task Name
The name of the DTS task. DTS automatically generates a task name. We recommend that you specify a descriptive name that makes it easy to identify the task. You do not need to specify a unique task name.
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 where the source ApsaraDB RDS for MySQL instance resides.
Replicate Data Across Alibaba Cloud Accounts
In this example, a database of the current Alibaba Cloud account is used. Select No.
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 the REPLICATION CLIENT, REPLICATION SLAVE, and SELECT permissions on the objects to be synchronized.
Database Password
The password that is used to access the database.
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 where the destination ApsaraDB RDS for MySQL instance resides.
Replicate Data Across Alibaba Cloud Accounts
In this example, a database of the current Alibaba Cloud account is used. Select No.
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
The password that is used to access the database.
Encryption
For this example, keep the default selection.
Click Test Connectivity and Proceed in the lower part of the page.
NoteMake sure that the CIDR blocks of DTS servers can be automatically or manually added to the security settings of the source and destination databases to allow access from DTS servers. For more information, see Add DTS server IP addresses to a whitelist.
If the source or destination database is a self-managed database and its Access Method is not set to Alibaba Cloud Instance, click Test Connectivity in the CIDR Blocks of DTS Servers dialog box.
Configure the objects to be synchronized.
In the Configure Objects step, configure the objects that you want to synchronize.
In this example, ensure that you 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 default settings for other parameters, or adjust them according to your needs.
Click Next: Advanced Settings to configure advanced settings.
In this example, you can keep the default settings or configure the parameters as needed.
Click Next Step: Data Verification to configure data verification.
For more information about how to use the data verification feature, see Configure a data verification task.
Save the task settings and run a precheck.
To view the parameters to be specified when you call the relevant API operation to configure the DTS task, move the pointer over Next: Save Task Settings and Precheck and click Preview OpenAPI parameters.
If you do not need to view or have viewed the parameters, click Next: Save Task Settings and Precheck in the lower part of the page.
NoteBefore you can start the data synchronization task, DTS performs a precheck. You can start the data synchronization task only after the task passes the precheck.
If the data synchronization task fails the precheck, click View Details next to each failed item. After you analyze the causes based on the check results, troubleshoot the issues. Then, rerun the precheck.
If an alert is triggered for an item during the precheck:
If an alert item cannot be ignored, click View Details next to the failed item and troubleshoot the issue. Then, run a precheck again.
If an alert item can be ignored, click Confirm Alert Details. In the View Details dialog box, click Ignore. In the message that appears, click OK. Then, click Precheck Again to run a precheck again. If you ignore the alert item, data inconsistency may occur, and your business may be exposed to potential risks.
Purchase the instance.
Wait until the Success Rate becomes 100%. Then, click Next: Purchase Instance.
On the buy page, configure the Billing Method and Instance Class parameters for the data synchronization task. The following table describes the parameters.
Section
Parameter
Description
New Instance Class
Billing Method
Subscription: You pay for a subscription when you create a data synchronization instance. The subscription billing method is more cost-effective than the pay-as-you-go billing method for long-term use.
Pay-as-you-go: A pay-as-you-go instance is billed on an hourly basis. The pay-as-you-go billing method is suitable for short-term use. If you no longer require a pay-as-you-go data synchronization instance, you can release the instance to reduce costs.
Resource Group Settings
The resource group to which the data synchronization instance belongs. Default value: default resource group. For more information, see What is Resource Management?
Instance Class
DTS provides instance classes that vary in synchronization speed. You can select an instance class based on your business requirements. For more information, see Instance classes of data synchronization instances.
Subscription Duration
If you select the subscription billing method, specify the subscription duration and the number of data synchronization instances that you want to create. The subscription duration can be one to nine months, one year, two years, three years, or five years.
NoteThis parameter is available only if you select the Subscription billing method.
Read and select Data Transmission Service (Pay-as-you-go) Service Terms.
Click Buy and Start. In the dialog box that appears, click OK.
You can view the progress of the task in the task list.
icon to add the objects to the Selected Objects section.