Help Center/ GeminiDB/ GeminiDB Redis API/ Working with GeminiDB Redis API/ Data Migration/ Overview of the Redis Data Migration Solution
Updated on 2025-01-03 GMT+08:00

Overview of the Redis Data Migration Solution

This section describes how to migrate services to GeminiDB Redis. If you have any questions about the migration, submit a service ticket to obtain technical support.

Usage Notes

Cloud services such as Alibaba Cloud Redis and TencentDB for Redis cannot use Huawei Cloud DRS for data migration due to the following factors:

  • Some self-developed Redis-like databases are not compatible with the PSync protocol.
  • Architecture restrictions: For many cloud vendors, the proxy component is added between users and Redis. PSync is not supported due to the proxy.
  • Security restrictions: In native Redis, fork() is used over PSync, which causes memory expansion, user request delay increase, and even out of memory.
  • Business strategy: A large number of users use RedisShake to migrate services from the cloud or change the cloud, so PSync is shielded.

Migration Tool

  • Data Replication Service (DRS): supports full data migration and incremental data migration and provides secure, stable, and reliable migration links. For details, see Migration Solution Overview.
  • Redis-Shake tool: is an open-source migration tool that supports migration modes such as full scanning (rump), data restoration (restore), and incremental synchronization (sync). You can download the tool to an ECS and use CLI to facilitate migration.

Required Permissions

  • Ensure that the database port is enabled in the security group of the GeminiDB Redis instance.

Migration Scenarios

Table 1 Migration scenarios

No.

Source

Destination

Migration Solution

1

GeminiDB Redis API

Open-source Redis/GeminiDB Redis API

(Recommended) Using DRS to Migrate Data from a GeminiDB Redis Instance to an Open-Source Redis Instance

2

Alibaba Cloud Redis/Tair

GeminiDB Redis

Migrating the Alibaba Cloud Database Redis/Tair To GeminiDB Redis

3

Open-source Redis

GeminiDB Redis

(Recommended) Using DRS to Migrate Data from Open-source Redis or Redis Cluster to GeminiDB Redis API

4

Open-source Redis

GeminiDB Redis

Migrating Data from Open-source Redis to GeminiDB Redis API Using Redis-Shake

5

RDB

GeminiDB Redis

(Recommended) Importing Data to Restore RDB Files to a GeminiDB Redis Instance

6

Self-built Kvrocks

GeminiDB Redis

From Kvrocks to GeminiDB Redis API

7

Self-built Pika

GeminiDB Redis

From Pika to GeminiDB Redis API

8

Self-built SSDB

GeminiDB Redis

From SSDB to GeminiDB Redis API

9

Self-built LevelDB

GeminiDB Redis

From LevelDB to GeminiDB Redis API

10

Self-built RocksDB

GeminiDB Redis

From Kvrocks to GeminiDB Redis API

11

AWS ElasticCache for Redis

GeminiDB Redis

Migrating AWS Elastic Cache for Redis Databases To GeminiDB Redis