redis 哨兵模式常用命令

ping 正常会返回pong
在这里插入图片描述
info replication 查看主从信息(非哨兵使用)
在这里插入图片描述
info 查看主从哨兵信息
sentinel masters 返回被监视的所有master及状态(哨兵使用)
在这里插入图片描述

sentinel master 返回指定的master及状态(哨兵使用)
在这里插入图片描述

sentinel slaves 返回slave及状态(哨兵使用)
在这里插入图片描述

sentinel sentinels 返回sentinel,除本身之外的哨兵及状态(哨兵使用)
在这里插入图片描述

sentinel get-master-addr-by-name 返回现在的master IP和Port(哨兵使用)
在这里插入图片描述

sentinel reset * 清理已经移除的master-slave或者sentinel信息
在这里插入图片描述

sentinel failover 手动执行故障转移
sentinel ckquorum 返回(OK 3 usable Sentinels. Quorum and failover authorization can be reached)
sentinel flushconfig 如果sentinel.conf丢失,可以使用这个命令生成新的配置文件

猜你喜欢

转载自blog.csdn.net/weixin_44835704/article/details/120883359
今日推荐