Posted over 4 years ago. Visible to the public. Repeats. Linked content.
Redis Sentinel manual failover
hint: You're not able to control which redis slave will chosen for the failover.
-
Connect to your sentinel instance:
Copyredis-cli -p <SENTINEL-PORT>
-
Have a look at the current master and the available slaves
CopySENTINEL masters
CopySENTINEL slaves <master name>
-
Force a failover
CopySENTINEL failover <master name>
-
After some seconds you can have a second look at the current master:
CopySENTINEL masters
The IP should have changed.