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 Redis. |
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 Redis. |
Target Instance Region | Select the target database region. |
Version | Currently, only NewDTS is supported. |
Specification | Currently, only the Xlarge specification is supported. |
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 | Make sure to check the box for I have read and agree to <Cloud Database Service Terms>. |
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 will connect to Tencent Cloud. Different access types require different network connectivity operations. For details, see 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 Connections. CCN: The source database can be interconnected with VPCs through CCN. If the source database is self-built on CVM, select Self-Build 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. If the source database is AWS, you need to enter the PSYNC name (IP:port:PSYNC name: password or IP:port:PSYNC name). The PSYNC name is the prefix used in the PSYNC command and should be requested from AWS. If the PSYNC command is not prefixed, it is necessary to set the preceding Service Provider parameter to Others and perform the migration as per an ordinary 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-Build on CVM | When Self-Build on CVM is selected as the Access Type, the following parameters need 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: 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 Cloud Database Migration Across Accounts. Cloud Database Instance: Select the instance ID of the source database. Password: The password for the migration account of the source database. |
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 Migrate Self-built Database to Tencent Cloud Database 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. |
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. Downward migration is supported. When the Access Type of the source database is set to Database, the target database can be selected as Public Network/Self-Build on CVM/Direct Connect/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. |
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. |
Enable Target Database Read/Write | Allow DTS or other services to write data to the target database. This parameter needs to be enabled when using the task retry feature. |
Automatic expiry of keys | When it is selected, expired keys in the target database will be automatically purged. This may result in inconsistencies between the data in the source and target databases, so proceed with caution. |
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). |
Was this page helpful?