Updated on 2022-02-21 GMT+08:00

Migrating Data Online

Application Scenarios

If the source and destination instances are interconnected and the SYNC and PSYNC commands are supported in the source instance, data can be migrated online in full or incrementally from the source to the destination.

Prerequisites

Before migrating data, read through Introduction to Migration with DCS to learn about the DCS data migration function and select an appropriate destination instance.

Step 1: Obtain the Source Instance Address

  1. Log in to the DCS console.
  2. Confirm the type and version of the source instance.
  3. On the details page of the source instance, obtain the connection address (IP address:port) of instance.

Step 2: Prepare the Destination DCS Redis Instance

  • If a destination DCS Redis instance is not available, create one first. For details, see Creating a DCS Redis Instance.
  • If a destination instance is available, you do not need to create a new one. However, you must clear the instance data before the migration. For details, see Clearing DCS Instance Data.

Step 3: Check the Network Between the Source and Destination Instances

  1. Check whether the source and destination instances are in the same VPC.

    If yes, go to Step 4: Create a Migration Task. If no, go to 2.

  2. Check whether the VPCs of the source and destination instances are connected.

    If yes, go to 1. If no, create a VPC peering connection. For details, see "VPC Peering Connection" section in the VPC User Guide.

Step 4: Create a Migration Task

  1. Log in to the DCS console.
  2. In the navigation pane, choose Data Migration.
  3. Click Create Migration Task.
  4. Specify Task Name and Description.
  5. Set Migration Mode to Migrate data online.
  6. Specify Migration Type.

    Supported migration types are Full and Full + incremental, which are described in Table 1.

    Table 1 Migration type description

    Migration Type

    Description

    Full

    Suitable for scenarios where services can be interrupted. Data is migrated at one time. Source instance data updated during the migration will not be migrated to the destination instance.

    Full + incremental

    Suitable for scenarios requiring minimal service downtime. The incremental migration parses logs to ensure data consistency between the source and destination instances.

    You can manually stop an ongoing migration.

  7. Enter the source instance address obtained in Step 1: Obtain the Source Instance Address.

    Set Source Redis Type to either of the following:

    • Intra-VPC Redis: The source Redis and the destination instance are in the same VPC.
    • Self-hosted Redis using Direct Connect or VPN connection: The source Redis and the destination instance are interconnected through VPN connection or Direct Connect connection.

  8. For Destination Instance, select the DCS Redis Instance prepared in Step 2: Prepare the Destination DCS Redis Instance.

    If the instance is password-protected, you can click Test Connection to check whether the instance password meets the requirements.

  9. Click Next.
  10. Confirm the migration task details and click Submit.

    Go back to the data migration task list. After the migration is successful, the task status changes to Successful.

    If the migration type is full+incremental, the migration task status will remain Migrating until you click Stop.