Migrating the Alibaba Cloud Database Redis/Tair To GeminiDB Redis
This section describes how to migrate Alibaba Cloud databases Redis or Tair to GeminiDB Redis.
Migration Principles
- The data migration function of the Alibaba Cloud data migration tool DTS is used to migrate data from Alibaba Cloud Redis to other Redis services. This tool avoids the restrictions of shielding the sync and psync commands of Alibaba Cloud Redis and migrates data from Alibaba Cloud Redis to Huawei Cloud GeminiDB Redis.
Precautions
- The source end on Alibaba Cloud needs to communicate with the destination end on Huawei Cloud. Ensure that a private line is enabled or that binding a public IP address is performed.
- The Alibaba Cloud DTS data migration function is charged in real time. Before using this function, ensure that your Alibaba Cloud account balance is sufficient.
- The Huawei Cloud GeminiDB Redis capacity must be greater than or equal to the memory capacity of the Alibaba Cloud Redis database.
- Ensure that the security group configuration on the source and target ends is enabled.
- Some Redis databases on Alibaba Cloud are special. For example, Tair hybrid storage does not support online full and incremental migration. You can complete the migration by scanning all the data.
Preparations
- Migrating data using a public IP address
- Purchase a Huawei Cloud EIP in advance. The bandwidth must be greater than the source database traffic.
- Bind the EIP to a Huawei Cloud GeminiDB Redis node.
- When configuring DTS, ensure that the destination database is connected through a public IP address.
- Migrating data using a private line
- Purchase an Alibaba ECS in advance to ensure that it can connect to Huawei Cloud GeminiDB Redis.
- Configure data forwarding to forward the traffic received by the local port to the destination end, implementing migration from Alibaba Cloud Redis to GeminiDB Redis.
ssh -g -L (Forwarding port): (LB IP address of Huawei Redis): (Huawei Redis port) -N -f root@ (Local ECS IP Address)
- When configuring DTS, ensure that the destination database is connected through a self-built ECS database.
Purchasing the DTS Data Synchronization Function
- Select the Redis service on Alibaba Cloud as the source end. If an EIP is used for migration, select a public IP address as the destination end and enter the EIP as the host name. If Direct Connect is used for migration, select the self-built Redis database on ECS as the destination end, set the host name to the IP address of the ECS, set the port number to the forwarding port number, enter the database password, and click the test link. If no exception occurs during the test, the next page is displayed. Otherwise, check whether the entire link is normal and whether the whitelist configuration is correct.
Figure 1 Source and destination configuration information
- Select Full Data Migration or Full Data Migration + Incremental Data Migration. Select Pre-check and Report Errors and select the database to be migrated.
If you use the multi-DB function, select all databases to be migrated. If the multi-DB function is not used, select only DB0.
Figure 2 Database to be migrated
Figure 3 Configure advanced settings.
- After the pre-check is complete, click Next: Purchase Instance.
Figure 4 Pre-check
- Select the bandwidth for the migration and click Buy and Start.
Figure 5 Bandwidth configuration
- If Full Data Migration + Incremental Data Migration is selected, the migration task will not automatically end. If there is no delay (0 ms), the full synchronization is complete.
Figure 6 Task status
Stopping the DTS Data Synchronization Service
- After the Redis service migration, stop the data synchronization task.
Figure 7 Stopping the data migration task
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.