Reputation: 73
I've already setup MongoDB sharding and now I need to setup replication for availability. How do I do this? I've currently got this:
Do I just setup replication on each server (by assigning each a secondary)?
Upvotes: 0
Views: 553
Reputation: 73
After reading through the suggestions from D. SM and JJussi (thanks by the way), I'll be implementing the following infrastructure:
Thanks once again for your input.
Upvotes: 0
Reputation: 1580
I would build the whole system in 3 DCs', for redundancy. Every data center would have three servers with services of:
So, a total of 9 nodes (physical or virtual).
If we "lose" one DC, everything works still, because we have a majority in all three replica sets.
Upvotes: 2
Reputation: 14480
You need 3 servers in each replica set for redundancy. Either put the third one in one of the data centers or get a third data center.
Upvotes: 1