Tribe on_conflict

(Bobby Hubbard) #1

I see that tribe.on_conflict can be set to prefer a specific tribe. I'm curious if that is tied to zen discovery in any way? In an HA mult-datacenter failover scenario, I'm wondering if we can rely on a federated tribe cluster to favor its local cluster indices when all is well but failover to the other tribe when the conflict no longer exists. How often is the conflict checked? Here is the scenario I'm rationalizing...

Cluster A is in datacenter A and ClusterB is datacenter B. They are mirror images using some kind of data mirroring/ replication strategy (another problem to solve :wink: ) . In each data center is a few tribe nodes the join both clusterA and clusterB across the data centers. Since the clusters are mirrored, obviously every index will conflict. The tribes would be configured to favor their data centers cluster. So tribeA would on_conflict prefer its indexes and tribeB its indexes. If tribeA loses its local cluster (maintenance, failure, etc), will the tribe know to defer to the remote tribeB's indices that no longer conflict?

Make sense?

(system) #2