首页 > 其他 > 详细

redis集群因为服务器断电启动后报错

时间:2020-04-02 20:28:45      阅读:203      评论:0      收藏:0      [点我收藏+]

./bin/redis-trib.rb check 检查集群状态有错误信息:

[ERR] Nodes don‘t agree about configuration!
>>> Check for open slots...
[WARNING] Node 192.168.100.222:7000 has slots in importing state (5781,6320,8331,9369,9454,9586,9743,9842,9938,9974).
[WARNING] Node 192.168.100.222:7001 has slots in importing state (5781,6320,8331,9369,9454,9586,9743,9842,9938,9974).
[WARNING] The following slots are open: 5781,6320,8331,9369,9454,9586,9743,9842,9938,9974
>>> Check slots coverage...
[OK] All 16384 slots covered.

 

清除对应散列槽中的任何导入/迁移状态

./bin/redis-cli -h 192.168.100.222 -p 7000

cluster setslot 9369 stable

cluster setslot 9454 stable

cluster setslot 9586 stable

......

 

./bin/redis-cli -h 192.168.100.222 -p 7001

cluster setslot 5781 stable

cluster setslot 6320 stable

cluster setslot 8331 stable

......

redis集群因为服务器断电启动后报错

原文:https://www.cnblogs.com/xiaoxiaozhou/p/12621591.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!