Create a DTS instance from a secondary node of an ApsaraDB RDS for MySQL Cluster Edition instance

Updated at:

This topic describes how to use DTS to create a DTS instance that uses a secondary node of an ApsaraDB RDS for MySQL Cluster Edition instance as the source database.

Prerequisites

You have created a direct node connection endpoint for the secondary node of the ApsaraDB RDS for MySQL Cluster Edition instance and verified the connection. For more information, see Direct node connection endpoint.

Usage notes

While a DTS instance is running, if the node selected for Secondary Node in ApsaraDB RDS for MySQL Cluster becomes unavailable due to an exception, DTS reports an error and immediately retries the connection. The instance's recovery depends on the node's recovery. If the node does not recover within the time specified for Retry Time for Failed Connections, the DTS instance fails.

Procedure

  1. Navigate to the Configure Source and Destination Databases step.

    For more information, see the configuration topics in Overview of data synchronization scenarios, Overview of data migration scenarios, and Overview of change tracking scenarios.

  2. Configure the Source Database information.

    The configuration page for the source database includes key parameters such as the database type, node ID, and connection endpoint. The following table describes the key parameters. Configure other parameters based on your business requirements.

    Category

    Parameter

    Description

    Source Database

    Database Type

    Select MySQL.

    Access Method

    Select Alibaba Cloud Instance.

    Instance Region

    Select the region of the source ApsaraDB RDS for MySQL Cluster Edition instance.

    RDS Instance ID

    Select the ID of the source ApsaraDB RDS for MySQL Cluster Edition instance.

    Secondary Node in ApsaraDB RDS for MySQL Cluster

    Select the secondary node of the source ApsaraDB RDS for MySQL Cluster Edition instance.

  3. Follow the relevant configuration topic to complete the setup.

    For more information, see the configuration topics in Overview of data synchronization scenarios, Overview of data migration scenarios, and Overview of change tracking scenarios.

FAQ

  • Can I select a secondary node when an ApsaraDB RDS for MySQL Cluster Edition instance is used as the destination database?

    No, this is not supported.

  • If a secondary node is added to an ApsaraDB RDS for MySQL Cluster Edition instance, will a running DTS instance fail?

    No, the instance will not fail.

  • If the connected secondary node is changed, will the running DTS instance fail?

    • If the secondary node is promoted to a primary node: The DTS instance does not fail.

    • If the secondary node is deleted: The DTS instance fails.

  • Is the Secondary Node in ApsaraDB RDS for MySQL Cluster parameter required?

    No. If you do not select a secondary node, DTS connects to the ApsaraDB RDS for MySQL Cluster Edition instance using the read/write endpoint.

References

Retry Time for Failed Connections: After a DTS instance starts, if the connection to the source or destination database fails, DTS reports an error and immediately retries the connection. The default retry duration is 720 minutes. You can also specify a custom value from 10 to 1440 minutes. We recommend that you set this value to 30 minutes or more. If DTS reconnects to the source and destination databases within the specified retry duration, the DTS instance automatically resumes. Otherwise, the DTS instance fails.