使用Redis 时接口报 ResponseError: CLUSTERDOWN Hash slot not served

我在Python 项目运行时,Redis 报错 ResponseError: CLUSTERDOWN Hash slot not served

能正常启动和连接 Redis-server,并且也能使用 redis-cli。出现这个原因是 因为我之前使用Redis 搭建过单机集群,并进行slot 哈希槽 分配导致的。

解决方法:

1, 使用 redis-cli --cluster check 127.0.0.1:6379 检查 提示:[ERR] Not all 16384 slots are covered by nodes。

2,使用 redis-cli --cluster fix 127.0.0.1:6379  修复完毕就恢复如初了。

猜你喜欢

转载自www.cnblogs.com/hellohorld/p/12968575.html