Switching the master
In a failover Managed Service for Redis cluster with multiple hosts, you can switch the master role from the current master host to the replica host. After this operation, the current master host becomes the replica host of the new master.
It takes several minutes on average to switch, and the cluster is available during that time.
Management console
CLI
- In the management console
, go to the folder containing a non-sharded cluster. - Select Managed Service for Redis.
- Click the name of the cluster and select the Hosts tab.
- In the line of the host with the
MASTER
role, click - In the window that opens, select the I want to switch the master option and click Switch.
If you don't have the Nebius AI command line interface yet, install and initialize it.
The folder specified in the CLI profile is used by default. You can specify a different folder using the --folder-name
or --folder-id
parameter.
Run the command:
ncp managed-redis cluster start-failover \
--name <cluster name>
You can request the cluster name with a list of clusters in the folder and the name of the master host for the desired shard with a list of hosts in the cluster.