I need to create mongo replicaset on two aws region(PROD(us-east-1) and DR(us-west-2)) where if PROD goes down, new primary replica will be selected from DR region and even if DR goes down mongo quorem will not be effected.
I’ve tried
- 2 replica(primary(p5) and secondery(p4) ) on prod and 3 replica(all secondary(p2, p1, p1)) on DR.
- 2 replica(primary(p5) and secondary(p4) ), one arbiter on prod and 3 replica(all secondary(p2, p1, p1)) on DR.
- 2 replica(primary(p5) and secondery(p4) ), one arbiter on prod and 2 replica(all secondary(p2, p1, p1)) and one arbiter on DR.
None of the above setup works. As soon as DR goes down, all replicas on PROD region becomes SECONDARY.
I’m sure we are missing something as this shouldn’t be a new issue.
Any help will be appriciated.