Scenarios
Cloud Connect Network (CCN) can interconnect a VPC with another VPC or a local IDC. To use CCN access, you must establish cross-VPC and VPC-IDC interconnections through CCN in advance.
As for the CCN metioned here, you can select it under the DTS task account (i.e., the root account to which the target database belongs) or under other accounts. Using the CCN under other accounts is suitable for resource sharing between multiple companies. For example, the CCN resources belong to the root account A of the parent company, and the DTS and target database resources used by users belong to the subsidiary's root account B, and there are no CCN resources under the root account B. Then, you can use the CCN resources under the root account A to access the self-built databases and perform DTS tasks. For details on CCN configuration across accounts, see Migrating Data from Self-Built MySQL to TencentDB for MySQL Through CCN. Configuration principles
Taking intra-account CCN configuration as an example, you have used CCN to interconnect the three networks of VPC-Guangzhou, VPC-Chengdu, and VPC-Shanghai. Now, you have a self-built database in Guangzhou and plan to migrate the data in the source database in Guangzhou to the target database in Nanjing, VPC-Chengdu is selected as the Accessed VPC.
When selecting CCN access, you need to connect the source database to the source of the DTS migration/sync linkage over CCN as follows: source database > direct connect gateway > accessed VPC > source of the migration/sync linkage, as shown in orange below. For "source database > direct connect gateway > accessed VPC", their networks have been connected, you need to pay attention to "accessed VPC > source of the migration/sync linkage".
The accessed VPC and the source of the migration/sync linkage are interconnected as follows in the entire DTS task:
The source of the migration/sync linkage is the network in the region of the source database selected during the task purchase, as shown below:
The region of the source database selected during task purchase must be the same as the region of the accessed VPC; otherwise, the networks cannot be interconnected, and DTS will change the former to the latter. If you select VPC-Chengdu as the accessed VPC, when you purchase a DTS task, you also need to select Chengdu as the region of the source instance. Even if you select another region, the DTS will automatically change it to Chengdu.
Accessed VPC: The accessed VPC refers to the VPC in CCN over which the migration/sync linkage is connected. It can be configured when you set the source and target databases.
Directions
Note
CCN only provides bandwidth below 10 Kbps between all regions free of charge. However, DTS requires a higher bandwidth. Therefore, bandwidth configuration in the link is required.
Subsequent Steps
1. To perform a data migration task or data sync task, you need to configure relevant parameters. Here, data migration from MySQL is used as an example. In the Set source and target databases step of the data migration task, select CCN and configure key parameters as follows: |
Host Address | IP address or domain name of the source database server. | 10.106.10.0 |
Port | Port used by the source database. Below are the default ports for common databases (if they are modified, enter the actual ports): MySQL: 3306 SQL Server: 1433 PostgreSQL: 5432 MongoDB: 27017 Redis: 6379 | 3306 |
VPC-based CCN Instance | The name of the CCN instance. | ccn6-xxxx7d |
Accessed VPC | The accessed VPC refers to the VPC in CCN over which the migration/sync linkage is connected. You need to select a VPC other than the VPC to which the source database belongs. For example, if the database in Guangzhou is used as the source database, select Chengdu-VPC or Shanghai-VPC as the accessed VPC. And Chengdu-VPC is selected here. | Chengdu-VPC |
Subnet | The subnet name of the selected VPC. If the subnet cannot be pulled, it may be an account problem. The account to which "accessed VPC" belongs must be the same as the migration account. For example, to migrate an instance from account A to account B, you should use account B to create a task, so the accessed VPC must be under account B. | Chengdu-VPC-subnet |
Region of Accessed VPC | The region of the source database selected during task purchase must be the same as the region of the accessed VPC; otherwise, DTS will change the former to the latter. | Chengdu |
2. Click Test Connectivity. If the test fails, troubleshoot as follows:
The Telnet test fails.
In the CCN-associated VPC (Chengdu-VPC in this example), purchase a CVM instance and ping the source database server address from it:
If the address is unpingable:
The port settings of the source database are incorrect.
Some route tables in the CCN instance are not enabled due to IP range conflicts.
If the address is pingable, the routing between the source database and CCN is normal.
The selected CCN-associated VPC is incorrect. The CCN-associated VPC and host address cannot be in the same region (if the network environment of the source database is a VPC in Guangzhou, you cannot select another VPC in Guangzhou as the CCN-associated VPC). The CCN-associated VPC and host address cannot be in the same VPC (if the network environment of the source database is VPC-A, you cannot select VPC-A as the CCN-associated VPC).
The Telnet test is passed, but the database connection fails.
The account or password is incorrect.
Was this page helpful?