Redis群集:(错误)已移动


23

我有一个具有以下节点的Redis集群:

192.168.0.14:6379 master (slots from 0 to 16383)
192.168.0.15:6379 slave (slots from 0 to 16383)
192.168.0.16:6379 master (without slots)

文档说,任何节点都可以将查询重定向到正确的节点。但是我无法从192.168.0.16:6379主节点重定向请求。这是我尝试过的:

192.168.0.16:6379> set myKey myValue
(error) MOVED 16281 192.168.0.14:6379
192.168.0.16:6379> get myKey
(error) MOVED 16281 192.168.0.14:6379

它既不写入也不读取。当我尝试从192.168.0.14:6379获取“ myKey”时,将显示以下内容:

127.0.0.1:6379> get myKey
(nil)

我的要求出了什么问题?我正在使用Redis服务器3.2.5版

Answers:


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.