Juniper/contrail-controller — pull request #67 by anishmehta (2013-12-11 20:05:45+00:00)
Title: We have situations where two redis-uve instances are not able to go into

active-standby state.
When this situations happens , sentinel reports periodic "redirect-to-master"
messages.
We look for these messages in the OpServer's sentinel client.
If we see more than 3 of these messages, without seeing a redis-switchover, we
restart the local redis-uve instance.
This results in one of the redis-uve instances going active.

There are also situations where a redis-uve instance comes up and is not seen by
the sentinels and the current master. It becomes master as well. This is
indicated by the "slave-restart-as-master" message. We restart redis-uve and
redis-sentinel in that case.