Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Replication architecture with 2 data centers
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
ronitF  
View profile  
 More options Oct 29 2012, 9:17 am
From: ronitF <ronit.farf...@gmail.com>
Date: Mon, 29 Oct 2012 06:17:21 -0700 (PDT)
Local: Mon, Oct 29 2012 9:17 am
Subject: Replication architecture with 2 data centers

I'm designing a Mongo replica set for our production environment.
We have two data centers (geographically distributed).
We have 6 replica sets, 3 in each data center.
Using Java driver.
The requirements are:
1. Read can be done against all secondary members (in both data centers).
2. Replication capabilities within each data center for minor failures.
3. Automatic failover when an entire data center is down.
4. Primary should always be elected. Minimum of 2 secondary members for
read.

What is the best replication architecture we can use ?

Thanks !


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
A. Jesse Jiryu Davis  
View profile  
 More options Oct 29 2012, 10:36 am
From: "A. Jesse Jiryu Davis" <je...@10gen.com>
Date: Mon, 29 Oct 2012 07:36:57 -0700 (PDT)
Local: Mon, Oct 29 2012 10:36 am
Subject: Re: Replication architecture with 2 data centers

See this document for geographic distribution of replica-set members and
configuring read preferences in the Java driver:

http://www.mongodb.org/display/DOCS/Read+Preferences+and+Tagging+in+T...

1. Use secondaryPreferred reads for data that you don't need
up-to-the-second consistency for. The Java driver will, by default, read
from the member with the shortest ping time, plus member within 15ms of
that shortest ping-time, so you most likely *won't* need to futz with
tagging to read from RS members in the correct data-center.

2. Put an equal number of members of each replica set in each data center
(e.g., three members in each)

3. Put an arbiter for each RS outside of any data center, e.g. on a cloud
server. Thus if you lose one data center or the other, the members in the
surviving DC plus the arbiter form a majority of the original RS. Now we're
describing 7-member RSes: 3 data members in each DC, plus an arbiter
somewhere else.

4. If you have three members of each RS in each DC, then even if you lose a
DC, you'll continue to have a primary and two secondaries.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Russell Smith  
View profile  
 More options Oct 29 2012, 12:52 pm
From: Russell Smith <r...@rainforestapp.com>
Date: Mon, 29 Oct 2012 09:52:39 -0700
Local: Mon, Oct 29 2012 12:52 pm
Subject: Re: [mongodb-user] Replication architecture with 2 data centers
The language you've used makes me ask;

You say 6 replica sets….do you mean 6 replica set members, or 6 replica sets?

If it's 6 replica set members, half in each DC, you're heading for a trouble.  You always have to use an odd number of replica set members if you want elections to work properly (unless you've been fiddling with the votes per member?); http://docs.mongodb.org/manual/administration/replica-sets/

Russ
Rainforest  |  +1-650-919-3216 |  rainforestqa.com

On Oct 29, 2012, at 7:36 AM, A. Jesse Jiryu Davis <je...@10gen.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ronitF  
View profile  
 More options Oct 30 2012, 3:46 am
From: ronitF <ronit.farf...@gmail.com>
Date: Tue, 30 Oct 2012 00:46:56 -0700 (PDT)
Local: Tues, Oct 30 2012 3:46 am
Subject: Re: Replication architecture with 2 data centers

Thank u for your answer.

בתאריך יום שני, 29 באוקטובר 2012 16:36:57 UTC+2, מאת A. Jesse Jiryu Davis:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ronitF  
View profile  
 More options Oct 30 2012, 3:48 am
From: ronitF <ronit.farf...@gmail.com>
Date: Tue, 30 Oct 2012 00:48:04 -0700 (PDT)
Local: Tues, Oct 30 2012 3:48 am
Subject: Re: [mongodb-user] Replication architecture with 2 data centers

I mean 6 replica set members.
Thank u.
בתאריך יום שני, 29 באוקטובר 2012 18:52:51 UTC+2, מאת Russell Smith:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Russell Smith  
View profile  
 More options Oct 30 2012, 1:11 pm
From: Russell Smith <r...@rainforestapp.com>
Date: Tue, 30 Oct 2012 10:10:45 -0700
Local: Tues, Oct 30 2012 1:10 pm
Subject: Re: [mongodb-user] Replication architecture with 2 data centers
Then you should  just make sure the number of members in a single
replicaset is odd, otherwise failure may result in the whole set going
read-only.

Do this by adding* another voting member, an arbiter or a full node will
do, as well as read the link I put below.

Russ

* or removing - but then you won't have two min at all times?

On 30 Oct 2012, at 0:48, ronitF wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »