- First set LREDIS_HOME in stop.sh
- Now you can exec run.sh
Scripts exec permisions chmod +x run.sh
and chmod +x stop.sh
Change mymaster
to your master name
In redis-cli sentinel:
- Force failover current master:
sentinel failover mymaster
- Get current master:
sentinel get-master-addr-by-name mymaster
Thanks: