Hi all,
I want to setup two Redis clusters in two datacenters A and B, A is master DC which all writes happen,
B is slave DC which just synchronize whole data set from A.
A1 <-----------stunnel--------- B1
A2 <-----------stunnel--------- B2
A3 <-----------stunnel--------- B3
In datacenter A I plan to use Redis sentinel for the three Redis instances A1/A2/A3, one of them is Redis master,
two of them are Redis slaves. In datacenter B all Redis instances are slaves.
I haven't verified it, according to Redis documentation, when a failover in DC A happens, Redis sentinel will
elect a slave to become master, so it possibly selects a slave in DC B, this is unexpected, I expect
the slaveof relationship is fixed between A and B, that's to say, B_i always tracks A_i.
How can I avoid Redis sentinel selecting slave in B? by disabling slaveof command in B?
Another related question, seems I can't use the "Redis Cluster" solution in DC A, because B1/B2/B3 don't form
a "Redis Cluster"(they sync from A), the clients in DC B can't know the dynamically changing partition mapping,
is my guess right?
Regards,
Yubao Liu