Updated on 2022-08-06 GMT+08:00

Managing Shards and Replicas

This section describes how to query the shards and replicas of a DCS Redis 4.0 or 5.0 instance and how to manually promote a replica to master.

Currently, this function is supported only by clusterand master/standby DCS Redis 4.0 or 5.0 instances. DCS Redis 3.0 instances and single-node DCS Redis 4.0/5.0 instances do not support this function.

  • A master/standby instance has only one shard with one master and one replica by default. You can view the sharding information on the Shards and Replicas page. To manually switch the master and replica roles, see Performing a Master/Standby Switchover for a DCS Instance.
  • A cluster instance has multiple shards. Each shard has one master and one replica by default. On the Shards and Replicas page, you can view the sharding information and manually switch the master and replica roles. For details about the number of shards corresponding to different instance specifications, see Redis Cluster.

Promoting a Replica to Master

  1. Log in to the DCS console.
  2. Click in the upper left corner and select a region and a project.
  3. In the navigation pane, choose Cache Manager. The Cache Manager page is displayed.
  1. Click an instance.
  2. Click the Shards and Replicas tab.

    The page displays all shards in the instance and the list of replicas of each shard.

  3. Click to show all replicas of a shard.
  4. Click Promote to Master in the row containing another replica which is in the "Replica" role.
  5. Click Yes.