1.现象
[ERR] Nodes don't agree about configuration! >>> Check for open slots... [WARNING] Node 192.168.206.129:7004 has slots in importing state 0. [WARNING] The following slots are open: 0. >>> Check slots coverage... [OK] All 16384 slots covered. *** Please fix your cluster problems before rebalancing
2.解决方案
登录对应IP+端口的Redis实例
以上为例,则我登录:
redis-cli -c -p 7004
执行数据取消slots迁移
错误日志中,有个非常重要的信息:
Node 192.168.206.129:7004 has slots in importing state 0.
其中这个state后面的参数,标识当前slot的ID,因此我们要取这个作为接下来的命令执行参数
cluster setslot 0 stable
注意:每个人对应的ID可能不一样,这里就需要调整。