All Products
Search
Document Center

Data Transmission Service:Synchronize data from a PolarDB for MySQL cluster to a Lindorm instance

Last Updated:Mar 28, 2026

Use Data Transmission Service (DTS) to synchronize data from a PolarDB for MySQL cluster to the wide table engine of a Lindorm instance. DTS performs an initial full data load, then continuously applies incremental changes to keep the destination in sync.

Prerequisites

Before you begin, make sure you have:

Objects created in the destination Lindorm instance must meet the requirements specified in Quotas and limits.

Billing

Synchronization typeFee
Full data synchronizationFree of charge
Incremental data synchronizationCharged. See Billing overview.

SQL operations supported for incremental synchronization

Operation typeSQL statements
DMLINSERT, UPDATE, DELETE
DDLCREATE TABLE, DROP TABLE, ADD COLUMN
Due to LindormTable engine limitations, DTS strips extra attributes from ADD COLUMN statements. For example, if the source runs ALTER TABLE test ADD COLUMN col INT DEFAULT 0;, DTS runs ALTER TABLE test ADD COLUMN col INT; on the destination.

Permissions required for database accounts

DatabaseRequired permissionsReference
Source PolarDB for MySQL clusterRead and write permissionsCreate and manage a database account
Destination Lindorm instanceRead and write permissions on the destination namespaceManage users

Limitations

  • Schema synchronization is not supported. Only full data synchronization and incremental data synchronization are available.

  • Data of the BIT type cannot be synchronized.

  • Data to be synchronized must contain at least one non-primary key field. Synchronizing only primary key fields is not supported.

  • Tables to be synchronized must have PRIMARY KEY or UNIQUE constraints with all fields unique. Otherwise, the destination may contain duplicate records.

  • When selecting tables as synchronization objects and renaming tables or columns in the destination, a single task supports a maximum of 1,000 tables. Exceeding this limit causes a request error. In this case, configure multiple tasks or synchronize the entire database instead.

  • DTS does not synchronize read-only nodes of the source PolarDB for MySQL cluster.

  • DTS does not synchronize Object Storage Service (OSS) external tables from the source PolarDB for MySQL cluster.

  • DTS does not support primary/secondary switchover during full data synchronization. If a switchover occurs, reconfigure the synchronization task.

  • Data can only be written to the wide table engine of the Lindorm instance.

  • Empty strings of the VARBINARY type are treated as null values in DTS and the Lindorm instance.

  • If the DECIMAL type precision differs between source and destination fields, the task fails.

  • Data in the Lindorm instance must meet the requirements in Limits on data requests. Otherwise, the task fails.

  • Do not perform DDL operations on the source database during full data synchronization — this causes the task to fail. DTS queries the source during this phase, which creates metadata locks that can also block DDL operations on the source.

  • Do not use tools such as pt-online-schema-change to perform online DDL operations on synchronized objects during synchronization. This causes the task to fail.

  • If non-DTS data is written to the destination during synchronization, data inconsistency may occur.

  • During initial full data synchronization, concurrent INSERT operations cause table fragmentation in the destination. After the initial full data synchronization completes, the destination table storage space will be larger than the source.

  • During initial full data synchronization, DTS uses read and write resources of both databases, which may increase server load. Schedule synchronization during off-peak hours — for example, when the CPU load of both databases is below 30%.

  • DTS periodically runs CREATE DATABASE IF NOT EXISTS \test\`` on the source database to advance the binary log file position.

  • If a DTS instance fails, the DTS team will attempt recovery within 8 hours. Recovery may involve restarting the instance or adjusting DTS instance parameters (database parameters are not modified). Parameters that may be adjusted include those described in Modify instance parameters.

Configure a synchronization task

Step 1: Open the Data Synchronization page

Use one of the following methods:

DTS console

  1. Log on to the DTS console

  2. In the left-side navigation pane, click Data Synchronization.

  3. In the upper-left corner, select the region where the synchronization task resides.

DMS console

Note

The actual steps may vary based on the mode and layout of the DMS console. See Simple mode and Customize the layout and style of the DMS console.

  1. Log on to the DMS console

  2. In the top navigation bar, move the pointer over Data + AI and choose DTS (DTS) > Data Synchronization.

  3. From the drop-down list to the right of Data Synchronization Tasks, select the region where the synchronization instance resides.

Step 2: Configure source and destination databases

  1. Click Create Task.

  2. Configure the task parameters as described in the following table.

    SectionParameterDescription
    N/ATask NameEnter a descriptive name to identify the task. A unique name is not required; DTS generates a default name automatically.
    Source DatabaseSelect Existing ConnectionIf the source instance is already registered with DTS, select it from the drop-down list — DTS fills in the parameters automatically. Otherwise, configure the parameters manually. In the DMS console, select from the Select a DMS database instance drop-down list.
    Database TypeSelect PolarDB for MySQL.
    Access MethodSelect Alibaba Cloud Instance.
    Instance RegionSelect the region where the source PolarDB for MySQL cluster resides.
    Replicate Data Across Alibaba Cloud AccountsSelect No to synchronize within the same Alibaba Cloud account.
    PolarDB Cluster IDSelect the ID of the source PolarDB for MySQL cluster.
    Database AccountEnter the database account for the source cluster. See Permissions required for database accounts.
    Database PasswordEnter the password for the database account.
    EncryptionSelect an SSL encryption option as needed. See Set SSL encryption.
    Destination DatabaseSelect Existing ConnectionIf the destination instance is already registered with DTS, select it from the drop-down list. Otherwise, configure the parameters manually. In the DMS console, select from the Select a DMS database instance drop-down list.
    Database TypeSelect Lindorm.
    Access MethodSelect Alibaba Cloud Instance.
    Instance RegionSelect the region where the destination Lindorm instance resides.
    Instance IDSelect the ID of the destination Lindorm instance.
    Database AccountEnter the database account for the destination Lindorm instance. See Permissions required for database accounts.
    Database PasswordEnter the password for the database account.
  3. Click Test Connectivity and Proceed.

    Make sure the CIDR blocks of DTS servers are added to the security settings of both databases to allow access. See Add DTS server IP addresses to a whitelist. If the source or destination is a self-managed database with an Access Method other than Alibaba Cloud Instance, click Test Connectivity in the CIDR Blocks of DTS Servers dialog box.

Step 3: Select objects to synchronize

In the Configure Objects step, configure the following parameters.

ParameterDescription
Synchronization TypesIncremental Data Synchronization is selected by default. Optionally add Full Data Synchronization. Schema Synchronization is not available for this source-destination pair.
Processing Mode of Conflicting TablesUse the default value.
Capitalization of Object Names in Destination InstanceControls the capitalization of database names, table names, and column names in the destination. DTS default policy is selected by default. See Specify the capitalization of object names in the destination instance.
Source ObjectsSelect objects from Source Objects and click the 向右 icon to move them to Selected Objects. You can select columns, tables, and databases.
Selected ObjectsIf the names of databases (namespaces), tables, or columns in the destination differ from those in the source, use the object name mapping feature. See Map object names. To filter rows with WHERE conditions, right-click a table in Selected Objects and specify the conditions. See Specify filter conditions. To select specific SQL operations for incremental synchronization, right-click an object in Selected Objects and choose the operations.
Renaming objects with the object name mapping feature may cause dependent objects to fail synchronization.

Step 4: Configure advanced settings

Click Next: Advanced Settings and configure the following parameters.

ParameterDescription
Dedicated Cluster for Task SchedulingDTS uses the shared cluster by default. For higher stability, purchase a dedicated cluster. See What is a DTS dedicated cluster.
Retry Time for Failed ConnectionsHow long DTS retries after a connection failure. Valid values: 10–1,440 minutes. Default: 720 minutes. Set to more than 30 minutes. If DTS reconnects within this window, the task resumes; otherwise, the task fails. If multiple tasks share the same source or destination, the shortest retry time applies. During retry, the DTS instance continues to incur charges.
Retry Time for Other IssuesHow long DTS retries after DDL or DML failures. Valid values: 1–1,440 minutes. Default: 10 minutes. Set to more than 10 minutes. Must be less than Retry Time for Failed Connections.
Enable Throttling for Full Data SynchronizationLimits the load DTS places on source and destination during full data synchronization. Configure Queries per second (QPS) to the source database, RPS of Full Data Migration, and Data migration speed for full migration (MB/s) as needed. Available only when Full Data Synchronization is selected.
Enable Throttling for Incremental Data SynchronizationLimits the load during incremental data synchronization. Configure RPS of Incremental Data Synchronization and Data synchronization speed for incremental synchronization (MB/s) as needed.
Whether to delete SQL operations on heartbeat tables of forward and reverse tasksControls whether DTS writes heartbeat table operations to the source database. Yesalert notification settings: does not write heartbeat operations (a latency value may appear on the task). No: writes heartbeat operations (may affect physical backup and cloning of the source database).
Environment TagOptionally select a tag to identify the environment.
Configure ETLSpecifies whether to enable the extract, transform, and load (ETL) feature. Yes: enter data processing statements in the code editor. See Configure ETL in a data migration or data synchronization task. No: skip ETL configuration. See What is ETL?
Monitoring and AlertingConfigures alerts when the task fails or synchronization latency exceeds a threshold. Yes: configure the alert threshold and notification contacts. See Configure monitoring and alerting when you create a DTS task. No: no alerts.

Step 5: Run a precheck

Click Next: Save Task Settings and Precheck.

To preview the API parameters for this task configuration, hover over Next: Save Task Settings and Precheck and click Preview OpenAPI parameters before proceeding.

DTS runs a precheck before the task can start. If the precheck fails:

  • Click View Details next to each failed item, resolve the issues, and click Precheck Again.

  • If an alert item can be ignored, click Confirm Alert Details, then Ignore, and click Precheck Again. Ignoring alerts may result in data inconsistency.

Step 6: Purchase an instance

  1. Wait until Success Rate reaches 100%, then click Next: Purchase Instance.

  2. On the buy page, configure the instance parameters.

    ParameterDescription
    Billing MethodSubscription: pay upfront for a fixed period. More cost-effective for long-term use. Pay-as-you-go: billed hourly. Suitable for short-term use; release the instance when no longer needed to stop charges.
    Resource Group SettingsThe resource group for the synchronization instance. Default: default resource group. See What is Resource Management?
    Instance ClassThe synchronization speed varies by instance class. Select a class based on your throughput requirements. See Instance classes of data synchronization instances.
    Subscription DurationAvailable for the Subscription billing method only. Options: 1–9 months, or 1, 2, 3, or 5 years.
  3. Read and select Data Transmission Service (Pay-as-you-go) Service Terms.

  4. Click Buy and Start, then click OK in the dialog box.

The task appears in the task list. Monitor its progress there.