redis2.9分布式集群部署的问题

moxiaomomo
博客专家认证
2014-02-11 05:45:46
三台物理机器,6个redis实例,每台机器运行两个实例。
单实例可以正常启动了,当创建集群时出现了以下错误:

xiaochram@ubsvr13:/opt/redis-unstable/src$ ./redis-trib.rb create --replicas 1 192.168.1.13:6379 192.168.1.15:6379 192.168.1.40:6379 192.168.1.13:6380 192.168.1.15:6380 192.168.1.40:6380
>>> Creating cluster
Connecting to node 192.168.1.13:6379: OK
Connecting to node 192.168.1.15:6379: OK
Connecting to node 192.168.1.40:6379: OK
Connecting to node 192.168.1.13:6380: OK
Connecting to node 192.168.1.15:6380: OK
Connecting to node 192.168.1.40:6380: OK
>>> Performing hash slots allocation on 6 nodes...
Using 3 masters:
192.168.1.40:6379
192.168.1.15:6379
192.168.1.13:6379
192.168.1.40:6379 replica #1 is 192.168.1.15:6380
192.168.1.15:6379 replica #1 is 192.168.1.40:6380
192.168.1.13:6379 replica #1 is 192.168.1.13:6380
M: 27f0acd598d65faca2d5a0ab4f0b086ee1034db7 192.168.1.13:6379
slots:10922-16383 (5462 slots) master
M: 31510ec83cf3681fcdb0da7e3b919dcec433df7b 192.168.1.15:6379
slots:5461-10921 (5461 slots) master
M: 006177ef19ecb0134f9e45cf26381cdcf644cdd9 192.168.1.40:6379
slots:0-5460,10922-16383 (10923 slots) master
S: 8d146fcb064a010eb3178e2095acb693fd010427 192.168.1.13:6380
replicates 27f0acd598d65faca2d5a0ab4f0b086ee1034db7
S: 4dae541e494d50a34e10ad2dd7b7567fbddcaa90 192.168.1.15:6380
replicates 006177ef19ecb0134f9e45cf26381cdcf644cdd9
S: ca7a9452ea64495bb9d6322a45b18a5630231c45 192.168.1.40:6380
replicates 31510ec83cf3681fcdb0da7e3b919dcec433df7b
Can I set the above configuration? (type 'yes' to accept): yes
/usr/lib/ruby/gems/1.8/gems/redis-3.0.7/lib/redis/client.rb:97:in `call': ERR Slot 11291 is already busy (Redis::CommandError)
from /usr/lib/ruby/gems/1.8/gems/redis-3.0.7/lib/redis.rb:2432:in `method_missing'
from /usr/lib/ruby/gems/1.8/gems/redis-3.0.7/lib/redis.rb:37:in `synchronize'
from /usr/lib/ruby/1.8/monitor.rb:242:in `mon_synchronize'
from /usr/lib/ruby/gems/1.8/gems/redis-3.0.7/lib/redis.rb:37:in `synchronize'
from /usr/lib/ruby/gems/1.8/gems/redis-3.0.7/lib/redis.rb:2431:in `method_missing'
from ./redis-trib.rb:203:in `flush_node_config'
from ./redis-trib.rb:571:in `flush_nodes_config'
from ./redis-trib.rb:570:in `each'
from ./redis-trib.rb:570:in `flush_nodes_config'
from ./redis-trib.rb:820:in `create_cluster_cmd'
from ./redis-trib.rb:1026:in `send'
from ./redis-trib.rb:1026

ERR Slot 11291 is already busy 槽被占用了? 求大家指点~~

...全文
331 回复 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

2,209

社区成员

发帖
与我相关
我的任务
社区描述
其他数据库开发 其他数据库
社区管理员
  • 其他数据库社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧