Managing Shards and Replicas
This section describes how to query the shards and replicas of a DCS Redis 4.0 or later instance and how to manually promote a replica to master.
Currently, this function is supported only by master/standby and cluster DCS Redis 4.0 and later instances. DCS Redis 3.0 instances and single-node 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 Proxy 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. For details about the number of shards corresponding to different instance specifications, see Proxy Cluster DCS Redis 4.0 and 5.0 Instances.
- A Redis 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. For details about the number of shards corresponding to different instance specifications, see Redis Cluster.
Promoting a Replica to Master
- Log in to the DCS console.
- Click in the upper left corner and select a region and a project.
- In the navigation pane, choose Cache Manager. The Cache Manager page is displayed.
- Click an instance.
- Choose Shards and Replicas.
The page displays all shards in the instance and the list of replicas of each shard.
- Click to show all replicas of a shard.
- Failover Priority can be set for replicas for a master/standby instance. Remove IP Address is supported in master/standby instances.
Failover priority: If the master fails, the system will be automatically promoted to the replica with the highest priority you specified. If there are multiple replicas sharing the same priority, a selection and switch process will be performed in the internal system. Priority ranges from 0 to 100 in descending order. 0 indicates that the replica will never be automatically promoted, 1 indicates the highest priority, and 100 indicates the lowest priority.
Remove IP address: If a master/standby instance has more than one replicas (excluding master), click Remove IP Address to remove the IP addresses of extra replicas. After a replica IP address is removed, the read-only domain name will no longer be resolved to the replica IP address. If a master/standby instance has only one replica, its IP address cannot be removed.
- Failover Priority can be set for replicas for a master/standby instance. Remove IP Address is supported in master/standby instances.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot