Manually Switch Redis Primary/Standby¶
In the Redis cache service, manually switching the primary/standby roles ensures continuous system operation when the primary node fails or requires maintenance. This article describes how to manually switch the primary/standby roles of Redis through the UI, and discusses the use cases and limitations.
Use Cases¶
- Failure recovery: When the primary node fails, the standby node can be promoted to the new primary node to ensure service continuity.
- Load balancing: Under high load, switching the primary/standby roles can distribute requests and improve the response capability of the system.
- Test environment: In development and test environments, manually switching the primary/standby roles helps developers verify the fault tolerance and data consistency of the system.
Cluster Mode¶
- Click the name of the target Redis instance to enter its details page.
- In the Pod list of the instance that requires a primary/standby switchover, click the icon in front of the shard name to expand all nodes under the current shard.
-
To switch the primary/standby roles of the nodes in a shard, click the Switch Primary/Standby icon after the shard to promote the standby node to the primary node.

-
Expand the drop-down list of standby nodes to specify the standby node to be promoted to the primary node.

Sentinel Mode¶
- Click the name of the target Redis instance to enter its details page.
-
In the upper right corner of the overview page, click Switch Primary/Standby.

-
Expand the drop-down list of standby nodes to specify the standby node to be promoted to the primary node.
