sentinel

sentinel monitor test1 192.168.7.40 6379 1 #修改IP地址,IP可以是集群中的任意一个IP地址。
sentinel down-after-milliseconds test1 5000 #默认1s检测一次,这里配置超时5000毫秒为宕机。
sentinel failover-timeout test1 900000
sentinel can-failover test1 yes
sentinel parallel-syncs test1 2 
原文地址:https://www.cnblogs.com/weixiaole/p/4434165.html