Infinite waiting time on cluster creation

219 views
Skip to first unread message

Akmal Abbasov

unread,
Jun 25, 2015, 12:44:48 PM6/25/15
to redi...@googlegroups.com
Hi, I am trying to create a redis cluster in 2 VMs. I am using vagrant to manage VMs. 
I am using redis-3.0.2, Ubuntu 14.04.2, Ruby 2.0.0p384.
I have 3 instances on each VM. I am using the following directory hierarchy to keep each instance data
cluster-nodes/
|-- 7001
|   |-- db01
|   |  -- nodes-7001.conf
|    -- redis.conf
|-- 7002
|   |-- db02
|   |   -- nodes-7002.conf
|    -- redis.conf
 -- 7003
    |-- db03
    |   -- nodes-.conf
     -- redis.conf

Here is my config file redis.conf under the 7001 directory

pidfile /var/run/redis/redis-7001.pid
port 7001
dir /opt/redis/cluster-nodes/7001/db01/
cluster-enabled yes
cluster-config-file nodes-7001.conf
cluster-node-timeout 15000

When I try to start redis I get

./redis-trib.rb create --replicas 1 127.0.0.1:7001 127.0.0.1:7002 127.0.0.1:7003 192.168.56.41:7007 192.168.56.41:7008 192.168.56.41:7009
>>> Creating cluster
Connecting to node 127.0.0.1:7001: OK
Connecting to node 127.0.0.1:7002: OK
Connecting to node 127.0.0.1:7003: OK
Connecting to node 192.168.56.41:7007: OK Connecting to node 192.168.56.41:7008: OK Connecting to node 192.168.56.41:7009: OK >>> Performing hash slots allocation on 6 nodes... Using 3 masters: 127.0.0.1:7001 192.168.56.41:7007 127.0.0.1:7002 Adding replica 192.168.56.41:7008 to 127.0.0.1:7001 Adding replica 127.0.0.1:7003 to 192.168.56.41:7007 Adding replica 192.168.56.41:7009 to 127.0.0.1:7002 M: 209d68fae9c64855d34972f660232eb96370a669 127.0.0.1:7001 slots:0-5460 (5461 slots) master M: 62e2b167a287b94b5154f7b9b0f226345baa81b7 127.0.0.1:7002 slots:10923-16383 (5461 slots) master S: 36ed59deceb01788db76abc0c2f22925a27295fc 127.0.0.1:7003 replicates 2760b5fcc99c6563a7cf8deea159efb012309238 M: 2760b5fcc99c6563a7cf8deea159efb012309238 192.168.56.41:7007 slots:5461-10922 (5462 slots) master S: 16bf95ba9cb743c2a3caecaab5c2fd5121d80557 192.168.56.41:7008 replicates 209d68fae9c64855d34972f660232eb96370a669 S: 30e7a5b4a94b5ff3a09f4809d6fd62edb2279b0e 192.168.56.41:7009 replicates 62e2b167a287b94b5154f7b9b0f226345baa81b7 Can I set the above configuration? (type 'yes' to accept): yes >>> Nodes configuration updated >>> Assign a different config epoch to each node >>> Sending CLUSTER MEET messages to join the cluster Waiting for the cluster to join.....................................................................................................................................................................................................................................................................^C./redis-trib.rb:534:in `sleep': Interrupt from ./redis-trib.rb:534:in `wait_cluster_join' from ./redis-trib.rb:1007:in `create_cluster_cmd' from ./redis-trib.rb:1373:in `<main>'
I've checked that both 700x and 1700x ports are listening


I also added rules to the firewall

But still when I am trying to start a cluster, I get an infinite waiting time to join.

Is there something I am doing not correctly?

Thank you.



Reply all
Reply to author
Forward
0 new messages