Help Center/ Distributed Cache Service/ User Guide/ Managing Instances/ Performing a Master/Standby Switchover for a DCS Instance
Updated on 2024-10-17 GMT+08:00

Performing a Master/Standby Switchover for a DCS Instance

On the DCS console, you can manually switch the master and standby nodes of a master/standby or read/write splitting DCS instance. This operation is used for special purposes, for example, releasing all service connections or terminating ongoing service operations.

This operation is not available for cluster instances. To perform a manual switchover for a Proxy Cluster or Redis Cluster instance, go to the Node Management or Shards and Replicas page of the instance. For details, see Managing DCS Instance Shards and Replicas.

  • During a master/standby switchover, services will be interrupted for up to 10 seconds. Before performing this operation, ensure that your application supports connection re-establishment in case of disconnection.
  • During a master/standby node switchover, a large amount of resources will be consumed for data synchronization between the master and standby nodes. You are advised to perform this operation during off-peak hours.
  • Data of the maser and standby nodes is synchronized asynchronously. Therefore, a small amount of data that is being operated on during the switchover may be lost.
  • The instance IP address does not change after a master/standby switchover, so the client does not need to change the connection address.

Prerequisites

The DCS instance for which you want to perform a master/standby switchover is in the Running state.

Performing a Master/Standby Switchover for a DCS Instance

  1. Log in to the DCS console.
  2. Click in the upper left corner of the management console and select the region where your instance is located.
  3. In the navigation pane, choose Cache Manager.
  4. In the Operation column of the instance, choose More > Master/Standby Switchover.
  5. When the master/standby switchover task is in the Successful state, the master/standby is switched over.