config set client-output-buffer-limit 'slave 0 0 0'
echo "net.ipv4.tcp_max_syn_backlog=4096" >> /etc/sysctl.confecho "net.core.somaxconn=4096" >> /etc/sysctl.confecho "net.ipv4.tcp_abort_on_overflow=0" >> /etc/sysctl.confsysctl -p
config set repl-diskless-sync yes
Configuration Parameter | Description |
Service Type | Select Data Migration. |
Creation Mode | Create a task: Create a completely new task. Create a similar task: Quickly create a task with the same configuration as that of a previous task. The new task's pre-filled options such as database type, access method, billing mode, and migration type are consistent with that of the historical task. Users can modify the settings if needed. |
Billing Mode | Only pay-as-you-go is supported. |
Source Instance Type | Select the source database type, which cannot be changed after purchase. Here, select Distributed Cache. |
Source Instance Region | Select the source database region. If the source database is a self-built one, select a region nearest to it. |
Target Instance Type | Select the target database type, which cannot be changed after purchase. Here, select Distributed Cache. |
Target Instance Region | Select the target database region. |
Version | Currently, only NewDTS is supported. |
Specification | Select specifications according to your business requirements. Higher specifications deliver better performance. For details, see Billing Overview. |
Tag | Set tag keys and values for the migration task to efficiently manage multiple tasks using tags. |
Task Name | Select Name After Creation: The default task name will be the same as the task ID. You can rename the task after the migration task is created. Select Name Now: Enter the task name in the input box below. |
Terms of service | |
Quantity | You can purchase up to 10 migration tasks at a time. |
Configuration Parameter | Description |
Task Name | Set a task name that is easy to identify. |
Running Mode | Immediate execution: The task will start immediately after the pre-check validation passes. Scheduled execution: Set a specific time for the task to start. The task will not start immediately after the pre-check validation passes; instead, it will start at the scheduled time. |
Automatic Retry | If it is selected, the migration task will automatically retry within the specified time range in case of task interruptions caused by network exceptions or similar issues. No manual intervention is required. The retry mechanism restarts the data migration from the beginning. During the retry process, any data that was previously migrated to the target end will either be cleared or overwritten. |
Configuration Parameter | Description |
Source Database Type | The source database type selected during purchase, which cannot be changed. |
Service Provider | If the source database is a self-built database on IDC or CVM, or a TencentDB database, select "Others". If the source database is an Alibaba Cloud database, Huawei Cloud, etc., select "Others". If the source database is an AWS database, select AWS. Currently, only AWS ElasticCache for Redis is supported; other AWS Redis databases are not supported. Depending on whether the PSYNC command is prefixed, there are different selections. For the PSYNC command with a prefix, select AWS. For the PSYNC command without a prefix, select Others. |
Region | The region selected for the source database at the time of purchase cannot be modified. |
Access Type | Select the network type through which the source database connects to Tencent Cloud. Different access types require different network connectivity operations. For details, see Network Preparation Overview. If the source database is an IDC self-built database or a database from another cloud providers, the access methods available include Public Network/Direct Connect/VPN Access/CCN. Public Network: The source database can be accessed through a public IP. Direct Connect: The source database can be interconnected with VPCs through Direct Connect. VPN Access: The source database can be interconnected with VPCs through VPN Access. CCN: The source database can be interconnected with VPCs through CCN. If the source database is a self-built database on a CVM instance, select Self-Built on CVM as the access method. If the source database is a TencentDB instance, select Database as the access method. |
Node type | Access Type: This parameter is displayed when an access type other than"Database" is selected. Choose according to your specific situation. Single-node migration: Refers to a cluster architecture with one primary node and multiple replicas. Cluster migration: Refers to a cluster architecture consisting of multiple shards, with each shard having several replica nodes. When cluster migration is selected, you will need to fill in the Node Info. Enter the addresses and passwords for all shard nodes in the source database cluster (IP:port: password or IP:port). For multiple nodes, enter each on a new line. When the source database is AWS, you need to enter the PSYNC name (IP address:Port:PSYNC Name:Password or IP address:Port:PSYNC Name). The PSYNC name refers to the PSYNC command prefix, which must be requested from AWS. If the PSYNC command has no prefix, set the Service Provider parameter to "General" and migrate it as a general cluster. It is recommended to use the replica nodes (secondary nodes) of the source database. Migrating from the replica nodes can help avoid impacting the source database's business access. |
Public Network | When Public Network is selected as the Access Type, the following parameters need to be configured. Host Address: The IP address or domain name of the source database. Port: The port used by the source database. Password: The password for the migration account of the source database. |
Self-Built on CVM | When Access Type is set to Self-Built on CVM, the following parameters are required to be configured. CVM instance: The instance ID of the CVM. Port: The port used by the source database. Password: The password for the migration account of the source database. |
Direct Connect | When Direct Connect is selected as the Access Type, the following parameters need to be configured. VPC Direct Connect Gateway: Only VPC Direct Connect gateways are supported for Direct Connect. Ensure that the gateway is associated with the correct network type. VPC: Select the VPC and subnet. Host Address: The IP address of the source database. Port: The port used by the source database. Password: The password for the migration account of the source database. |
VPN Access | When VPN Access is selected as the Access Type, the following parameters need to be configured. VPN Gateway: Select the VPN gateway instance that connects to the source database network. VPC: Select the VPC and subnet. Host Address: The IP address of the source database. Port: The port used by the source database. Password: The password for the migration account of the source database. |
Database | When Database is selected as the Access Type, the following parameters need to be configured. Cross-account Same account: The source database instance and the target database instance belong to the same Tencent Cloud account. Cross-account: The source database and the target database instances belong to different Tencent Cloud accounts. For detailed instructions on cross-account operations, see Cross-Account Cloud Database Instance Migration. Cloud Database Instance: Select the instance ID of the source database. Password: Enter the account and password. For the default account, only the password. Note: Distributed Cache supports custom accounts. Enter the connection parameters for the custom account. The default delimiter is @, and the format is account@password (for example, user@password).You can also change the delimiter to other characters in the Distributed Cache console (for example, user:password). DTS will stay consistent with Distributed Cache, so enter the credentials in the format of the delimiter you configured. |
CCN | When the Access Type is set to CCN, the following parameters need to be configured. When CCN is used for connection, it supports both same-account and cross-account CCN. Due to the complexity of network configurations, see Migrating Self-built Databases to TencentDB via CCN. Host network environment: Select according to your actual situation. If the source database is a TencentDB instance, select Tencent Cloud; if the source database is a self-built IDC database, select Self-built IDC; if the source database is from another cloud provider, select the corresponding network. Host Address: The IP address of the source database host. Port: The port used by the source database. Password: The password for the migration account of the source database. CCN instance account My Account: The CCN resources and DTS belong to the same Tencent Cloud root account. Other Account: The CCN resources and DTS belong to different Tencent Cloud root accounts. VPC CCN : The name of the CCN instance. VPC access: Select the VPC and subnet to access. The Access VPC refers to the VPC that connects to the DTS migration linkage within the CCN. Select a VPC other than the one to which the source database belongs from all the VPCs associated with the CCN. VPC access region: The region of the source database selected at the time of task purchase should match the region of the VPC you are connecting to. If they do not match, DTS will automatically change the region of the source database selected during task purchase to match the VPC region. |
Connection Method | Secure Sockets Layer (SSL) connection refers to the use of SSL to establish a secure connection between DTS and the database, encrypting the transfer link. Enabling SSL secure connection may increase the connection response time of the database. Generally, Tencent Clouds private network linkage is relatively secure, and enabling SSL secure connection is not necessary. However, for scenarios using public network, DC, or other transmission methods where higher data security is required, enabling SSL secure connection is recommended. Ensure that SSL encryption is enabled in the database before selecting SSL secure connection. |
Configuration Parameter | Description |
Access Type | Select based on your scene. The configuration principles for different access types are similar to those for the source database. Note: Migration off the cloud is supported. When the source database access type is set to Cloud Database, the access type of the target database can be set to Public Network/Self-Built on CVM/DC/VPN Access/CCN. |
Node type | This parameter appears when any Access Type other than "Database" is selected. Select based on the actual situation of the target database. Supported options include Single-node Migration, Redis Cluster Migration, and Proxy Cluster Migration. |


Configuration Item | Description |
Migration Type | The default is full + incremental migration and cannot be modified. Full + incremental migration means migrating the historical data of the source database before the migration and the new data written to the source database during the migration. |
Migration Object | The default is to select the entire instance and cannot be modified. |
Enable Key Filtering | Prefix filtering rules can be configured for multi-key commands. For details, see Key Prefix Filtering. |
Target Database Writing Mode | Clear Target Instance: When the source database data is synchronized to the target database, the existing data in the target database will be cleared and then rewritten. Overwrite: When the source database data is synchronized to the target database, the keys from the source database will overwrite the keys in the target database. For the scenario of migrating data from the cloud to on-premises environments, if Overwrite is not selected in the DTS task configuration, the pre-check will fail when existing data is detected on the target database, and automatic retries will not be triggered. |
Enable Target Database Read/Write | DTS or other services are allowed to write data to the target database. For Redis migration scenarios, enable read/write on the target database. |
Automatic expiry of keys | 1. When this option is selected, expired keys are automatically evicted from the target database, saving space. However, selecting this option may cause data inconsistency between the source and target databases. Proceed with caution. 2. Normally, the target is configured to automatically evict expired keys. To ensure data consistency between the source and target, if you do not select Automatic Eviction of Expired Keys in the DTS task configuration, expired keys on the target will not be evicted. After the DTS task ends, this configuration is reverted, and expired keys on the target database will be automatically evicted again. 3. For Redis migration scenarios, target database read/write must be enabled. If you need to migrate the SET NX command (which executes only when the key does not exist) from the source database, it is recommended to enable automatic eviction of expired keys. Otherwise, when DTS writes the SET NX command to the target database, the migration task may report an error due to the presence of expired keys on the target database. |
Configuration Item | Description |
Limit Data Transfer Rate | This generally does not need to be set. However, if the DTS transfer rate is impacting the load on the target database, you can set a rate limit. Number of shards in the target database: If the target database is a TencentDB instance, the number of shards is automatically retrieved and cannot be modified. Traffic limit per shard in the target database: Enter the traffic limit per shard, with the setting range between 0-100 MB/s. If the target instance has a cluster architecture, then the maximum traffic per second for a single instance = number of shards * If the target instance has a cluster architecture, the maximum traffic per second for the entire instance is calculated as: number of shards x traffic limit per shard (MB/s). |

Configuration Item | Description |
Verification Scope | Full check: Perform a record-by-record comparison of all object data selected for migration from the source database to ensure the integrity of migrated data. |
Verification Benchmark | Source: Use data from the source as the check benchmark. |
Verification Mode | Compare Key + Value: Checks whether all data is consistent. Compare Keys only: Only checks the existence of Keys. Compare Value length: Only checks whether the lengths of Values are the same. Compare Value: For Keys with a length exceeding 1000, only the length is compared, not the content. |
Configuration Item | Description |
QPS verification | Set the queries per second (QPS) limit for the check task. QPS is the upper limit for queries per second when a single shard is checked. A value of 0 indicates no limit. |
Number of reviews | Set the number of rechecks. If the first full data check result is inconsistent, the background will re-initiate a check of the inconsistent data identified during the full check. |
Recheck time interval | Set the interval for rechecks. |
Configuration Item | Description |
Check Object | All migration objects: The check scope includes all objects selected for the migration task. |
Esta página foi útil?
Você também pode entrar em contato com a Equipe de vendas ou Enviar um tíquete em caso de ajuda.
comentários