redis-cluster issue ( ERR Slot 16011 is already busy (Redis::CommandError))

1,494 views
Skip to first unread message

balaji rajan

unread,
Dec 6, 2013, 1:44:02 AM12/6/13
to redi...@googlegroups.com
Hi,
Good day :)

When I am creating a redis cluster with 6 nodes, i am getting the below error ( ERR Slot 16011 is already busy (Redis::CommandError)).
Any idea why this is happening ?


================
# /etc/rcluster/redis/src/redis-trib.rb create --replicas 1 redis1:6379 redis2:6379 redis3:6379 redis4:6379 redis5:6379 redis6:6379
>>> Creating cluster
Connecting to node redis1:6379: OK
Connecting to node redis2:6379: OK
Connecting to node redis3:6379: OK
Connecting to node redis4:6379: OK
Connecting to node redis5:6379: OK
Connecting to node redis6:6379: OK
>>> Performing hash slots allocation on 6 nodes...
Using 3 masters:
redis6:6379
redis5:6379
redis4:6379
redis6:6379 replica #1 is redis3:6379
redis5:6379 replica #1 is redis2:6379
redis4:6379 replica #1 is redis1:6379
S: ad8e17670c09b22a890349ab7afc308c06dec6d5 redis1:6379
S: 675076513b796ecf539a63d4e3e4d817a50376fd redis2:6379
S: f0e03099b192f6678a11d56aeefad78412d4a1c2 redis3:6379
M: 3c93cf0072e3328a26518e06cb7bab038411619c redis4:6379
   slots:10922-16383 (5462 slots) master
M: a294095e66d818bebc830aaeab6dbdc1b73b05ac redis5:6379
   slots:5461-10921 (5461 slots) master
M: 9e9c136955ae191eccf74861c4fb268ac0b11f50 redis6:6379
   slots:0-5460 (5461 slots) master
Can I set the above configuration? (type 'yes' to accept): yes
/usr/lib/ruby/gems/1.8/gems/redis-3.0.6/lib/redis/client.rb:85:in `call': ERR Slot 16011 is already busy (Redis::CommandError)
from /usr/lib/ruby/gems/1.8/gems/redis-3.0.6/lib/redis.rb:2427:in `method_missing'
from /usr/lib/ruby/gems/1.8/gems/redis-3.0.6/lib/redis.rb:36: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.6/lib/redis.rb:36:in `synchronize'
from /usr/lib/ruby/gems/1.8/gems/redis-3.0.6/lib/redis.rb:2426:in `method_missing'
from /etc/rcluster/redis/src/redis-trib.rb:201:in `flush_node_config'
from /etc/rcluster/redis/src/redis-trib.rb:552:in `flush_nodes_config'
from /etc/rcluster/redis/src/redis-trib.rb:551:in `each'
from /etc/rcluster/redis/src/redis-trib.rb:551:in `flush_nodes_config'
from /etc/rcluster/redis/src/redis-trib.rb:779:in `create_cluster_cmd'
from /etc/rcluster/redis/src/redis-trib.rb:887:in `send'
from /etc/rcluster/redis/src/redis-trib.rb:887
================


Thanks,
Balaji Rajan
Devops

balaji rajan

unread,
Dec 6, 2013, 3:05:09 AM12/6/13
to redi...@googlegroups.com
Hi All,

Never mind. Got fixed the issue by using IP address instead of hostnames. 

Thank you antirez , for the wonderful redis-cluster.

==========
>>> Creating cluster
Connecting to node 10.70.53.223:6379: OK
Connecting to node 10.70.53.224:6379: OK
Connecting to node 10.70.53.225:6379: OK
Connecting to node 10.70.53.226:6379: OK
Connecting to node 10.70.53.227:6379: OK
Connecting to node 10.70.53.228:6379: OK
>>> Performing hash slots allocation on 6 nodes...
Using 3 masters:
S: f39ab7359873c826531c3a1b36c2e303973b4d0a 10.70.53.223:6379
S: b4a8023238edc5b7b4edc520288bfef2310a6128 10.70.53.224:6379
S: 23e15788ba16df9c84273d9fd53d38573abeb417 10.70.53.225:6379
M: 0611b3ed87b891cc476acf4d01b0044a2810d1b5 10.70.53.226:6379
   slots:10922-16383 (5462 slots) master
M: 7de5f1db1c81714c9da2e45285f2b37f1215f77e 10.70.53.227:6379
   slots:5461-10921 (5461 slots) master
M: ccd982e7c27eba636e9f9f03204904963421cd42 10.70.53.228:6379
   slots:0-5460 (5461 slots) master
Can I set the above configuration? (type 'yes' to accept): yes
>>> Nodes configuration updated
>>> Sending CLUSTER MEET messages to join the cluster
10.70.53.223
10.70.53.223
10.70.53.223
10.70.53.223
10.70.53.223
Waiting for the cluster to join...
>>> Performing Cluster Check (using node 10.70.53.223:6379)
M: f39ab7359873c826531c3a1b36c2e303973b4d0a 10.70.53.223:6379
   slots: (0 slots) master
M: b4a8023238edc5b7b4edc520288bfef2310a6128 10.70.53.224:6379
   slots: (0 slots) master
M: 23e15788ba16df9c84273d9fd53d38573abeb417 10.70.53.225:6379
   slots: (0 slots) master
M: 0611b3ed87b891cc476acf4d01b0044a2810d1b5 10.70.53.226:6379
   slots:10922-16383 (5462 slots) master
M: 7de5f1db1c81714c9da2e45285f2b37f1215f77e 10.70.53.227:6379
   slots:5461-10921 (5461 slots) master
M: ccd982e7c27eba636e9f9f03204904963421cd42 10.70.53.228:6379
   slots:0-5460 (5461 slots) master
[OK] All nodes agree about slots configuration.
>>> Check for open slots...
>>> Check slots coverage...
[OK] All 16384 slots covered.

==========

Thanks,
Balaji Rajan
Devops

Salvatore Sanfilippo

unread,
Dec 6, 2013, 4:17:52 AM12/6/13
to Redis DB
Thanks for testing it! :-)
> --
> You received this message because you are subscribed to the Google Groups
> "Redis DB" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to redis-db+u...@googlegroups.com.
> To post to this group, send email to redi...@googlegroups.com.
> Visit this group at http://groups.google.com/group/redis-db.
> For more options, visit https://groups.google.com/groups/opt_out.



--
Salvatore 'antirez' Sanfilippo
open source developer - GoPivotal
http://invece.org

We suspect that trading off implementation flexibility for
understandability makes sense for most system designs.
— Diego Ongaro and John Ousterhout (from Raft paper)

Eric Greer

unread,
May 17, 2014, 2:07:12 AM5/17/14
to redi...@googlegroups.com
I can confirm same problem.  Looks like the ruby tool won't resolve hostnames at some point in the procedure.  It appears to properly setup the shards and replication, though.

tokudbfan

unread,
May 17, 2014, 11:16:30 PM5/17/14
to redi...@googlegroups.com
I need to be able to keep N sets of integers and iterate over each set M
times to see if values of M are stored in each set, but I cannot add the
values of M to any of the N sets. HyperLogLog seems to be missing an
PFISMEMBER command. Is that because HyperLogLog is a relatively new data
type and it just has been overlooked? Or is this because it's too
problematic to test if a value is a member without adding it to the
HyperLogLog? I don't want to do anything that requires cloning the
HyperLogLog since I have to iterate over it M times and even though
cloning is constant time it says high constant times so I'm afraid it
might be too slow to do that in LUA without holding up Redis. I don't
want to use the SET data structure if I don't have to because there's a
need for N sets and there's a potential for each set to grow to too big
of a size. Plus I don't need to get the values out of the set just test
whether or not they exist in the set.

Kalyanaraman Santhanam

unread,
Aug 19, 2014, 7:49:37 PM8/19/14
to redi...@googlegroups.com

Hi I am trying to setup a 3 master node redis cluster. I am getting the following error: 

[ksanthanam@lab1 ~]$ sudo /usr/local/src/redis-3.0.0-beta8/src/redis-trib.rb create --replicas 0  127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7002

>>> Creating cluster

Connecting to node 127.0.0.1:7000,: OK

Connecting to node 127.0.0.1:7001,: OK

Connecting to node 127.0.0.1:7002: OK

>>> Performing hash slots allocation on 3 nodes...

Using 3 masters:

127.0.0.1:7000,

127.0.0.1:7001,

127.0.0.1:7002

M: 28bc45df18fe1ee259043e388bd529343562fad7 127.0.0.1:7000,

  slots:0-5460 (5461 slots) master

M: 90204add9e8c47a0b94b76acf04c3d981a34b72f 127.0.0.1:7001,

  slots:5461-10922 (5462 slots) master

M: fd9e1eb017a53d46e234a390af2e34508d21bf45 127.0.0.1:7002

  slots:10923-16383 (5461 slots) master

Can I set the above configuration? (type 'yes' to accept): yes

/usr/lib/ruby/gems/1.8/gems/redis-3.1.0/lib/redis/client.rb:103:in `call': ERR Slot 4648 is already busy (Redis::CommandError)

from /usr/lib/ruby/gems/1.8/gems/redis-3.1.0/lib/redis.rb:2486:in `method_missing'

from /usr/lib/ruby/gems/1.8/gems/redis-3.1.0/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.1.0/lib/redis.rb:37:in `synchronize'

from /usr/lib/ruby/gems/1.8/gems/redis-3.1.0/lib/redis.rb:2485:in `method_missing'

from /usr/local/src/redis-3.0.0-beta8/src/redis-trib.rb:203:in `flush_node_config'

from /usr/local/src/redis-3.0.0-beta8/src/redis-trib.rb:629:in `flush_nodes_config'

from /usr/local/src/redis-3.0.0-beta8/src/redis-trib.rb:628:in `each'

from /usr/local/src/redis-3.0.0-beta8/src/redis-trib.rb:628:in `flush_nodes_config'

from /usr/local/src/redis-3.0.0-beta8/src/redis-trib.rb:964:in `create_cluster_cmd'

from /usr/local/src/redis-3.0.0-beta8/src/redis-trib.rb:1340:in `send'

from /usr/local/src/redis-3.0.0-beta8/src/redis-trib.rb:1340

[ksanthanam@lab1 ~]$ sudo /usr/local/src/redis-3.0.0-beta8/src/redis-trib.rb create --replicas 0  127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7002

>>> Creating cluster

Connecting to node 127.0.0.1:7000,: OK

Connecting to node 127.0.0.1:7001,: OK

Connecting to node 127.0.0.1:7002: OK

>>> Performing hash slots allocation on 3 nodes...

Using 3 masters:

127.0.0.1:7000,

127.0.0.1:7001,

127.0.0.1:7002

M: 28bc45df18fe1ee259043e388bd529343562fad7 127.0.0.1:7000,

  slots:0-5460 (5461 slots) master

M: 90204add9e8c47a0b94b76acf04c3d981a34b72f 127.0.0.1:7001,

  slots:5461-10922 (5462 slots) master

M: fd9e1eb017a53d46e234a390af2e34508d21bf45 127.0.0.1:7002

  slots:10923-16383 (5461 slots) master

Can I set the above configuration? (type 'yes' to accept): yes

/usr/lib/ruby/gems/1.8/gems/redis-3.1.0/lib/redis/client.rb:103:in `call': ERR Slot 4648 is already busy (Redis::CommandError)

from /usr/lib/ruby/gems/1.8/gems/redis-3.1.0/lib/redis.rb:2486:in `method_missing'

from /usr/lib/ruby/gems/1.8/gems/redis-3.1.0/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.1.0/lib/redis.rb:37:in `synchronize'

from /usr/lib/ruby/gems/1.8/gems/redis-3.1.0/lib/redis.rb:2485:in `method_missing'

from /usr/local/src/redis-3.0.0-beta8/src/redis-trib.rb:203:in `flush_node_config'

from /usr/local/src/redis-3.0.0-beta8/src/redis-trib.rb:629:in `flush_nodes_config'

from /usr/local/src/redis-3.0.0-beta8/src/redis-trib.rb:628:in `each'

from /usr/local/src/redis-3.0.0-beta8/src/redis-trib.rb:628:in `flush_nodes_config'

from /usr/local/src/redis-3.0.0-beta8/src/redis-trib.rb:964:in `create_cluster_cmd'

from /usr/local/src/redis-3.0.0-beta8/src/redis-trib.rb:1340:in `send'

from /usr/local/src/redis-3.0.0-beta8/src/redis-trib.rb:1340
[ksanthanam@lab1 ~]$




On Thursday, December 5, 2013 10:44:02 PM UTC-8, balaji rajan wrote:

星星周

unread,
Feb 12, 2015, 5:45:04 AM2/12/15
to redi...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages