Hello guys I've been all over the MongoDB documentation (http://docs.mongodb.org) and I can't find a solution to my problem. Imagine the following scenario:
I have 2 Nodes (1000Km apart). Both nodes can communicate with the other; Node1 has several replicasets and therefore several Masters, Slaves and Arbiters; Node2 has a replica (slave) and a hidden replica (hidden slave) of each Master in Node1. Here's a diagram to help you guys understand
I want to know what might happen if:
The link between the two nodes fails; My guess is the non hidden slaves in Node2 will be elected Masters. What happens when the link between nodes returns? 2 masters?
Node 1 fails completely; Same scenario? 2 Masters when Node1 returns?
Is this the best way to do this? Any sugestions on how should I do it so I won't lose any information if Node1 fails completely (avoiding the two masters situation)