On Fri, Jun 27, 2014 at 9:33 AM, Dvir Volk <
dv...@everything.me> wrote:
> But the question is more technical - say I have a sentinel cluster for each
> DC. They shouldn't know each other. But the sentinel gossip protocol over
> the masters will make them know each other, and do crazy stuff if they can
> speak to each other. Am I right about this assumption?
Hello Dvir,
this assumption is not correct actually, assuming I understand it
correctly. For example if you have two different groups of Sentinels
monitoring the same master, but using two different names for the
master, they'll not discover / updated each other.
However this is not enough to avoid problems, the first set of
Sentinels may failover the master and the other set will sense the
switch of the promoted slave into a master as a misconfiguration and
will reconfigure the slave again to replicate from the old master and
so forth.
Aside from this problems, there is also the problem that for Sentinel
the role of an instance is the one published in INFO by the instance.
This means that you can't failover a slave that happens to be the
master of other chained instances. Also the chained instances will not
be detected, and if detected because of a temporary role change for
some reason, they'll be reconfigured to replicate with what Sentinel
believe to be the master.
Basically you can find your ways to make it working but currently the
support for chained replication in Sentinel is near zero.
Salvatore
--
Salvatore 'antirez' Sanfilippo
open source developer - GoPivotal
http://invece.org
To "attack a straw man" is to create the illusion of having refuted a
proposition by replacing it with a superficially similar yet
unequivalent proposition (the "straw man"), and to refute it
— Wikipedia (Straw man page)