When using the C# driver, should an arbiter be included in the connection string?

148 views
Skip to first unread message

Martin Owen

unread,
Jul 13, 2011, 5:27:44 AM7/13/11
to mongodb-user
Hello,

I've got a replica set of 3 servers - a primary, a secondary, and an
arbiter. I know that I have to list my servers in a comma-separated
list in my connection string, but I was wondering if I should include
the arbiter server in this list? It's never going to be connected to
by the driver itself so I assume it can be left out? Is there any harm
in including it in the list?

Cheers,

Martin Owen

Nat

unread,
Jul 13, 2011, 5:42:34 AM7/13/11
to mongod...@googlegroups.com
Including it should do no harm. It will be used as seed list to provide list of servers available in the replicaset.

Gijs

unread,
Jul 13, 2011, 5:50:09 AM7/13/11
to mongodb-user
According to http://www.mongodb.org/display/DOCS/Replica+Set+Internals
arbiters cannot be seed hosts. So as far as I know arbiters shouldn't
be in the list.

Nat

unread,
Jul 13, 2011, 6:26:05 AM7/13/11
to mongod...@googlegroups.com
That's right but it will be changed in 1.9. 

Martin Owen

unread,
Jul 13, 2011, 8:25:23 AM7/13/11
to mongod...@googlegroups.com
Thanks, I think I'll leave the arbiter out of my connection strings
until I hear anything different.

Martin

On 13 July 2011 11:26, Nat <nat....@gmail.com> wrote:
> That's right but it will be changed in 1.9.
> https://jira.mongodb.org/browse/SERVER-2547
>

> --
> You received this message because you are subscribed to the Google Groups
> "mongodb-user" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/mongodb-user/-/VrMe9-r4gAYJ.
> To post to this group, send email to mongod...@googlegroups.com.
> To unsubscribe from this group, send email to
> mongodb-user...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/mongodb-user?hl=en.
>

Reply all
Reply to author
Forward
0 new messages