Redis Cluster - Slave does not FAILOVER

110 views
Skip to first unread message

Tiroshan Madushanka

unread,
Oct 9, 2017, 12:23:22 PM10/9/17
to Redis DB

Hi All,

I have created a Redis Cluster as bellow.

xxx.xxx.xxx.195:9100 xxx.xxx.xxx.196:9100 xxx.xxx.xxx.197:9100
xxx.xxx.xxx.195:9200 xxx.xxx.xxx.196:9200 xxx.xxx.xxx.197:9200

I have experienced that the CLUSTER is FAILED to recover when I stop 2 Redis instances which are masters of the cluster as (2 instances of xxx.xxx.xxx.196) at the same time,

xxx.xxx.xxx.195:9100 (Master) xxx.xxx.xxx.196:9100 (Master) xxx.xxx.xxx.197:9100 (Slave)
xxx.xxx.xxx.195:9200 (Slave) xxx.xxx.xxx.196:9200 (Master) xxx.xxx.xxx.197:9200 (Slave)

But at the same time if I stop 2 instances of .195 server where 9100 - Master and 9200 - Slave, Cluster recovers and works fine

Cluster Configuration File :

protected-mode no
activerehashing yes
cluster-enabled yes
cluster-config-file /opt/redis/conf/nodes9100.conf
cluster-slave-validity-factor 0
cluster-node-timeout 5000
appendonly yes
                 Attached the redis.log of a slave instance.

               Thanks,
               Tiroshan



redis9200.log

andyh

unread,
Oct 14, 2017, 1:40:46 AM10/14/17
to redi...@googlegroups.com
Redis Cluster can only survive if majority of the masters are alive. You are killing 2 out of 3. 


--
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+unsubscribe@googlegroups.com.
To post to this group, send email to redi...@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.



--
andyh
Andy Huang (Huangkejun)
Reply all
Reply to author
Forward
0 new messages