All Products
Search
Document Center

Data Transmission Service:Create a DTS instance for a high-availability MongoDB database

Last Updated:Mar 30, 2026

When you use a self-managed MongoDB database as the source or destination in a Data Transmission Service (DTS) data synchronization or migration task, you can specify multiple endpoints to improve connection stability.

Prerequisites

Before you begin, ensure that you have:

  • Added the CIDR blocks of DTS servers to the IP address whitelist of the self-managed MongoDB database. For more information, see Add the CIDR blocks of DTS servers.

  • Obtained the endpoints of the MongoDB nodes and confirmed they are reachable.

For a sharded cluster source database, you must obtain the endpoints of all shard nodes.

Constraints

  • Multi-node endpoint configuration is available only on the new version of the task configuration page.

  • The Access Method parameter must be set to one of the following: Express Connect, VPN Gateway, or Smart Access Gateway, Cloud Enterprise Network (CEN), or Public IP Address.

Configure multi-node endpoints

  1. Go to the Data Synchronization Tasks or Data Migration Tasks page.

    1. Log on to the DTS console.

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

    3. On the top navigation bar, select the region where the task resides.

  2. Click Create Task.

  3. Configure the source or destination database parameters. The following table describes the key parameters for multi-node configuration.

    Parameter Description
    Database Type Select MongoDB.
    Access Method Select Express Connect, VPN Gateway, or Smart Access Gateway, Cloud Enterprise Network (CEN), or Public IP Address.
    Architecture Select Replica Set or Sharded Cluster.
    Endpoint Type Select Multi-node.
    Endpoint / Mongos endpoint Enter endpoints in <IP>:<Port> format, where <IP> is a domain name or IP address. Use a publicly resolvable domain name when possible. Separate multiple endpoints with line feeds. If Architecture is set to Replica Set, use the Endpoint field. If Architecture is set to Sharded Cluster, use the Mongos endpoint field instead.
    Access to Multiple Shard Nodes Available only when the source database is a self-managed MongoDB database, the Architecture parameter is set to Sharded Cluster, Migration Method is set to Oplog, and Endpoint Type is set to Multi-node. Click Add to the right of this parameter, enter each shard node endpoint in the Shard Node Endpoint field in <IP>:<Port> format (use a publicly resolvable domain name when possible), and repeat for each shard node.
  4. Complete the remaining task configuration based on your requirements.

Next steps