Updated on 2024-10-17 GMT+08:00

Migration Solution Notes

Migration Tools

Table 1 Comparing Redis migration tools

Tool/Command/Service

Feature

Description

DCS console

Supports online migration (in full or incrementally) and backup migration (by importing backup files) with intuitive operations.

  • Backup migration is suitable when the source and target Redis instances are not connected, and the source Redis instance does not support the SYNC and PSYNC commands. To migrate data, import your backup files to OBS, and DCS will read data from OBS and migrate the data to the target DCS Redis instance.
  • Online migration is suitable when the source Redis instance supports the SYNC and PSYNC commands. Data in the source Redis instance can be migrated in full or incrementally to the target instance.

redis-cli

  • The Redis command line interface (CLI), which can be used to export data as an RDB file or import the AOF file (that is, all DBs) of an instance.
  • An AOF file is large file containing a full set of data change commands.

-

Rump

Supports online migration between DBs of an instance or between DBs of different instances.

Rump does not support incremental migration.

Stop services before migrating data. Otherwise, keys might be lost. For details, see Online Migration from Another Cloud Using Rump.

Redis-shake

An open-source tool that supports both online and offline migration.

redis-shake is suitable for migrating Redis Cluster data.

Self-developed migration script

Flexible and can be adjusted as required.

-

Migration Schemes

Table 2 Migration Schemes

Scenario

Tool

Use Case

Description

Migration between Huawei Cloud DCS instances

DCS console

Attempts to migrate data from a later-version Redis instance to an earlier-version Redis instance are not recommended because they will fail due to data compatibility issues between different Redis versions.

From self-hosted Redis to DCS

NOTE:

Self-hosted Redis refers to self-hosted Redis on Huawei Cloud, in another cloud, or in on-premises data centers.

DCS console

-

redis-cli

-

redis-shake

-

From another cloud to DCS

DCS console

If online migration is required, contact the O&M personnel of another cloud to enable the SYNC and PSYNC commands.

Rump

Online Migration from Another Cloud Using Rump

-

Redis-shake

Backup Import from Another Cloud Using redis-shake

Migrating from Another Cloud Online Using redis-shake

-