redis配置sentinel,master shutdown后主从切换失败,提示错误
-failover-abort-not-elected master mymaster x.x.x.x 6379
原因是sentinel.conf缺少配置,若redis.conf中添加
protected-mode yes
bind 0.0.0.0
则sentinel.conf中添加该属性。
redis配置sentinel,master shutdown后主从切换失败,提示错误
-failover-abort-not-elected master mymaster x.x.x.x 6379
原因是sentinel.conf缺少配置,若redis.conf中添加
protected-mode yes
bind 0.0.0.0
则sentinel.conf中添加该属性。
转载于:https://my.oschina.net/u/1259194/blog/1595762