From: Tom DeMille <t...@boomtownroi.com>
Date: Wed, 7 Nov 2012 10:56:19 -0800 (PST)
Local: Wed, Nov 7 2012 1:56 pm
Subject: Re: [mongodb-csharp] Re: How to read from both members of my Replica Set
A moment ago my new secondary switched to Primary (because I configured it I understand that in one respect, in that we are NOT using slaveOK. But Does the c# driver cache the replication stuff? Would I need to do an Here is my current (obscured) connect string Tom On Wednesday, November 7, 2012 12:16:21 PM UTC-5, Robert Stam wrote:
> In version 1.4.2 the only setting available to you is slaveOk=true or > If you set slaveOk=true your reads will go to the secondary. If you set > Once you upgrade to 1.6.1 you and use the new ReadPreference setting, > Primary (equivalent to slaveOk=false) > Seems like Nearest would do what you want, distributing the reads between > On Wed, Nov 7, 2012 at 11:56 AM, Tom DeMille <t...@boomtownroi.com<javascript:> >> Check that, we can't upgrade the driver right now, using 1.4.2 >> On Wednesday, November 7, 2012 11:54:36 AM UTC-5, Tom DeMille wrote: >>> Have a 3 node replica set, where one node is an Arbiter. Thus at any >>> Whats the best way to achieve this? If the primary is running 'slow' >>> What would the c# code/connection strings look like to accomplish this. >>> I'm using 2.2.1 Mongo. >>> I will be updating c# driver to latest version. 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.
| ||||||||||||||