redis2.9分布式集群部署的问题
三台物理机器,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 槽被占用了? 求大家指点~~
单实例可以正常启动了,当创建集群时出现了以下错误:
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 槽被占用了? 求大家指点~~
...全文
相关推荐
Redis+nginx集群部署
Tomcat+Nginx+Redis搭建高性能负载均衡集群Session共享
Tomcat8(Tomcat9)+redis实现Session共享(支持Redis集群)
使用说明:请严格按照资源内的readme文档来说明部署,不要搞错版本,完美支持Tomcat8和Tomcat9等新版本Tomcat,仅支持JDK8以上版本JDK。
百度分布式redis集群平台开发与运维.docx
百度分布式redis集群平台开发与运维
redis3主3从集群搭建完整版
redis 3主3从 集群搭建完整版,各种错误解决,一站式方便快捷,只需要一个文档就够了。redis 3主3从 集群搭建完整版
Redis集群部署文档
Redis集群部署文档,看下他写的怎么样。好吧!


其他数据库
