ping 正常会返回pong
sentinel masters 返回被监视的所有master及状态
sentinel master <master name> 返回指定的master及状态
sentinel slaves <master name> 返回slave及状态
sentinel sentinels <master name> 返回sentinel及状态
sentinel get-master-addr-by-name mymaster 返回现在的master IP和Port
sentinel reset * 清理已经移除的master-slave或者sentinel信息
sentinel failover <master name>手动执行故障转移
sentinel ckquorum <master name> 返回(OK 3 usable Sentinels. Quorum and failover authorization can be reached)
sentinel flushconfig 如果sentinel.conf丢失,可以使用这个命令生成新的配置文件
redis-cli -h 127.0.0.1 -p 26379 sentinel remove [实例名]
redis-cli -h 127.0.0.1 -p 26379 sentinel monitor [实例名] 192.168.11.1 6379 2
sentinel info
redis-cli -h 192.168.71.16 -p 26379 sentinel failover mymaster
redis-cli -h 192.168.71.14 -p 26379 shutdown
redis-cli -h 172.20.52.113 -p 26379 sentinel reset '*'
SENTINEL slaves mymaster
REF
https://redis.io/docs/management/sentinel/#sentinel-api