summaryrefslogtreecommitdiff
path: root/sentinel.conf
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2012-07-31 10:14:23 +0200
committerantirez <antirez@gmail.com>2012-07-31 10:19:34 +0200
commit75084e057dcbd0cefbd1ee035c367320f2257de6 (patch)
tree3279366f36bdba7f099e5cd88c1a5ebb77b7081d /sentinel.conf
parent7f5bdba4343cf32c8ae7d38a3f6d0d163677c14c (diff)
downloadredis-75084e057dcbd0cefbd1ee035c367320f2257de6.tar.gz
Sentinel: abort failover when in wait-start if master is back.
When we are a Leader Sentinel in wait-start state, starting with this commit the failover is aborted if the master returns online. This improves the way we handle a notable case of net split, that is the split between Sentinels and Redis servers, that will be a very common case of split becase Sentinels will often be installed in the client's network and servers can be in a differnt arm of the network. When Sentinels and Redis servers are isolated the master is in ODOWN condition since the Sentinels can agree about this state, however the failover does not start since there are no good slaves to promote (in this specific case all the slaves are unreachable). However when the split is resolved, Sentinels may sense the slave back a moment before they sense the master is back, so the failover may start without a good reason (since the master is actually working too). Now this condition is reversible, so the failover will be aborted immediately after if the master is detected to be working again, that is, not in SDOWN nor in ODOWN condition.
Diffstat (limited to 'sentinel.conf')
0 files changed, 0 insertions, 0 deletions