Did anyone tried master-master replication in mongodb. i have used replica set and master-slave replication. But we want to go with 2 data centers and need a master in each data center. i am using latest 3.2 version. Can anyone tried this kind of architecture.
Mongodb – master-master replication in mongodb
mongodb
Related Question
- mongodb – MongoDB Automatic Failover Between 2 Data Centers
- MongoDB – Adding Secondary via rs.add
- Set MongoDB Node to Return as Primary in a Replication Set
- MongoDB – Can a Delayed Secondary Not Vote?
- MongoDB – Replica Set with Arbiter Version 2.6
- MongoDB – Replication Initial Sync Fails with OplogStartMissing
- Mongodb replication failed with socketexception and listener
Best Answer
MongoDB doesn't do master-master replication; you can only have a single primary: