On Thu, Oct 29, 2009 at 8:36 PM, Brian Hammond <
br...@fictorial.com> wrote:
>
> It would be great to not have to manually set a former slave to be a
> master but have it happen automatically.
>
> Consider 3 redis instances: A, B, C
>
> A is the current master
> B and C are slaves of A
>
> A goes down (for whatever reason)
>
> Currently, you have to manage this scenario yourself (AFAIK) by
>
> 1. fixing the issue with A, bring it back online, and continue with A
> as master
> 2. pick one of B or C (say B) and make it a "SLAVEOF" the other (this
> extends to N other slaves)
>
> When A is brought back online, it can be made a SLAVEOF the new master
> (say B)
>
> This "sucks". I don't want to have to babysit my servers. I just
> want them to be available as much as possible.
>
> I know there are monitoring tools out there that watch a server and if
> it goes offline, *does something* like alerting someone or ARPing the
> IP on another host (e.g. Wackamole). That's fine and good but there's
> nothing that I know of that will send a command to several other hosts
> (SLAVEOF). If there is, please let me know.
>
(e.g. run redis-cli with particular and test its return code) and "do
something" when test fails (e.g. run redis-cli with other command).