Updated on 2023-09-08 GMT+08:00

Overview

This guide provides suggestions and instructions on how to migrate Redis data. For details on how to migrate Memcached data, see How Do I Migrate Memcached Data?

Due to variations of Redis application environments and scenarios, migration solutions must be detailed to address actual requirements. The time required for data migration is related to the data volume, the location of source Redis data, and the network bandwidth. Record and evaluate the duration during the rehearsal phase.

When migrating data, analyze the cache commands (reference: Command Compatibility) used by your service systems and verify the commands one by one during the rehearsal phase. If necessary, contact technical support.

  • Currently, the data migration function is free of charge in the OBT. You will be notified when data migration starts to be charged.
  • Data migration is an important and stringent task requiring high accuracy and timeliness. It varies depending on specific services and operation environments.
  • Cases provided in this document are for reference only. Consider your service scenarios and requirements during actual migration.
  • Some commands in this document contain instance passwords, which will be recorded in the operating system (OS). Ensure that the passwords are not disclosed and clear operation records in a timely manner.
  • DCS for Redis 3.0 is no longer provided. You can use DCS for Redis 4.0 or later.

DCS Data Migration Modes

  • DCS for Redis refers to Redis instances provided by DCS.
  • Self-hosted Redis refers to self-hosted Redis on the cloud, from other cloud vendors, or in on-premises data centers.
  • Other cloud Redis refers to Redis services provided by other cloud vendors.
  • : Supported. ×: Not supported.
Table 1 DCS data migration modes

Migration Mode

Source

Target: DCS

Single-Node, Read/Write Splitting, or Master/Standby

Proxy Cluster

Redis Cluster

Importing backup files

AOF file

RDB file

Migrating data online

DCS for Redis: Single-node, read/write splitting, or master/standby

DCS for Redis: Proxy Cluster

NOTE:

Proxy Cluster DCS Redis 3.0 instances cannot be used as the source, while Proxy Cluster DCS Redis 4.0 or 5.0 instances can.

DCS for Redis: Redis Cluster

Self-hosted Redis

Other cloud Redis

NOTE:

You can migrate data online in full or incrementally from other cloud Redis to DCS for Redis if they are connected and the SYNC and PSYNC commands can be run on the source Redis. However, some instances provided by other cloud vendors may fail to be migrated online. In this case, migrate data through backup import or use other migration schemes. For details, see Migration Tools and Schemes.