dennis bing leng
2014-02-14 20:38:03 UTC
Hi All
I have configured the our redis server as below:
<Loading Image...
>
The way I have configured is that master and slave are physically
separated, I have two sentinels, one is on the master box, the other one is
on the slave box. the current version of redis on these boxes are 2.8.6.
the failover works in the our DEV environment. But when I use it in the QA
environment with the same configuration. it did not work as i am keep
getting failover-abort-not-elected state during the failover process (e.g.
I reboot the master). the current quorum I use is 1 on both sentinels.
the current master ip is 100.0.0.2, the slave is 100.0.0.1
when I reboot master (100.0.0.2), here is the log file from sentinel on
100.0.0.1
[1515] 14 Feb 02:17:32.176 # +sdown master mymaster 100.0.0.2 6381
[1515] 14 Feb 02:17:32.177 # +odown master mymaster 100.0.0.2 6381 #quorum
1/1
[1515] 14 Feb 02:17:32.177 # +new-epoch 5
[1515] 14 Feb 02:17:32.177 # +try-failover master mymaster 100.0.0.2 6381
[1515] 14 Feb 02:17:32.177 # +vote-for-leader
a665c1457fcd575418ae52a965d5ec389fb9b835 5
[1515] 14 Feb 02:17:42.217 # -failover-abort-not-elected master mymaster
100.0.0.2 6381
[1515] 14 Feb 02:17:45.691 # +sdown sentinel 100.0.0.2:26381 100.0.0.2
26381 @ mymaster 100.0.0.2 6381
I was expecting that the sentinel on slave will get elected to be the
leader then trigger the failover process. Did i misconfigure it?
Thank you so very much.
Bing
I have configured the our redis server as below:
<Loading Image...
The way I have configured is that master and slave are physically
separated, I have two sentinels, one is on the master box, the other one is
on the slave box. the current version of redis on these boxes are 2.8.6.
the failover works in the our DEV environment. But when I use it in the QA
environment with the same configuration. it did not work as i am keep
getting failover-abort-not-elected state during the failover process (e.g.
I reboot the master). the current quorum I use is 1 on both sentinels.
the current master ip is 100.0.0.2, the slave is 100.0.0.1
when I reboot master (100.0.0.2), here is the log file from sentinel on
100.0.0.1
[1515] 14 Feb 02:17:32.176 # +sdown master mymaster 100.0.0.2 6381
[1515] 14 Feb 02:17:32.177 # +odown master mymaster 100.0.0.2 6381 #quorum
1/1
[1515] 14 Feb 02:17:32.177 # +new-epoch 5
[1515] 14 Feb 02:17:32.177 # +try-failover master mymaster 100.0.0.2 6381
[1515] 14 Feb 02:17:32.177 # +vote-for-leader
a665c1457fcd575418ae52a965d5ec389fb9b835 5
[1515] 14 Feb 02:17:42.217 # -failover-abort-not-elected master mymaster
100.0.0.2 6381
[1515] 14 Feb 02:17:45.691 # +sdown sentinel 100.0.0.2:26381 100.0.0.2
26381 @ mymaster 100.0.0.2 6381
I was expecting that the sentinel on slave will get elected to be the
leader then trigger the failover process. Did i misconfigure it?
Thank you so very much.
Bing
--
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-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To post to this group, send email to redis-db-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
Visit this group at http://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/groups/opt_out.
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-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To post to this group, send email to redis-db-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
Visit this group at http://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/groups/opt_out.