How to setup mongo synchronization with only two nodes?

Hi all,
Im trying to install two nodes of mongo, each one locates in a different location with low latency.
The architecture should be:

  • One node in DC, and the other node in DR. It is supposed to be only one node is the master at a time (node in DC), if DC down, node in DR can be the master (can propose it manually as a master).

  • When node in DR is manually changed to be master, I can have time to bring up again node in DC, wait data to be synced to DC, then step down node in DR, change node in DC to be master again.

I’m not sure the replica set can be applied to this.
Please help me a solution for this.

Thank you.