Help Center> Distributed Cache Service> Data Migration Guide> FAQs> Can I Migrate Data from a Multi-DB Source Redis Instance to a Cluster DCS Redis Instance?
Updated on 2023-09-08 GMT+08:00

Can I Migrate Data from a Multi-DB Source Redis Instance to a Cluster DCS Redis Instance?

A total of 256 DBs (DB 0 to DB 255) can be configured for a single-node, read/write splitting, or master/standby DCS instance.

  • If the target is a Redis Cluster instance (a Redis Cluster instance has only one DB):

    Solutions:

    1. Combine different DBs in the source Redis instance into one DB.
    2. Apply for multiple DCS instances.

    After the migration, the instance connection address and DB IDs change. In this case, modify the configurations for your services.

  • If the target is a Proxy Cluster instance:

    By default, the multi-DB function is disabled for Proxy Cluster instances and only one DB (DB0) is available. To use more than one DB, enable multi-DB by referring to Enabling Multi-DB before migration.