Redis集群环境:och163/och164/och165

在执行如下脚本时报错:

./src/redis-trib.rb create  10.1.253.163: 10.1.253.164: 10.1.253.165:
/usr/lib/ruby/gems/1.8/gems/redis-3.0./lib/redis/client.rb::in `call': ERR Slot 16011 is already busy (Redis::CommandError)
from /usr/lib/ruby/gems/1.8/gems/redis-3.0./lib/redis.rb::in `method_missing'
from /usr/lib/ruby/gems/1.8/gems/redis-3.0./lib/redis.rb::in `synchronize'
from /usr/lib/ruby/1.8/monitor.rb::in `mon_synchronize'
from /usr/lib/ruby/gems/1.8/gems/redis-3.0./lib/redis.rb::in `synchronize'
from /usr/lib/ruby/gems/1.8/gems/redis-3.0./lib/redis.rb::in `method_missing'
.....

解决办法:

redis.conf中定义的 cluster-config-file 所在的文件删除,重新启动redis-server及运行redis-trib即可。

注:执行redis-trib.rb create时,不能使用hostname,只能使用ip地址

05-06 23:25