解决spring4连接redis集群报错:CLUSTERDOWN The cluster is down

来源:互联网 发布:阿里云大厦有什么公司 编辑:程序博客网 时间:2024/06/02 00:25

原因是redis出错了。解决方法如下:

1、使用命令检查REDIS状态: /java/redis/redis7000/src/redis-trib.rb check 192.168.249.230:7000

[ERR] Nodes don't agree about configuration!
>>> Check for open slots...
[WARNING] Node 192.168.249.230:7001 has slots in importing state (4658).
[WARNING] The following slots are open: 4658
>>> Check slots coverage...
[OK] All 16384 slots covered.

2、使用命令修复REDIS: /java/redis/redis7000/src/redis-trib.rb fix  192.168.249.230:7001

[OK] All nodes agree about slots configuration.
>>> Check for open slots...
>>> Check slots coverage...
[OK] All 16384 slots covered.


通过以上两步即可解决:CLUSTERDOWN The cluster is down

阅读全文
0 1
原创粉丝点击