سؤال

What are the practical disadvantages of distributing a Mongo 3-node replica set across 3 different regions in AWS for High availability? Or is this a bad idea entirely due to replication lag?

هل كانت مفيدة؟

المحلول

I have done this before and it worked quite well.

AWS tends to have very good latency between regions and a hugely redundant network so replication lag is not a problem but you might wish to extend the capped collection oplog a little bit to account for regional problems (i.e. Hurricane Sandy in one region and sunny weather in the other).

As @Orid said you will, of course, want to ensure CAP by keeping a majority in at least one side of the network partition which will exist between regions.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top