Arbiter in replica set connection string URI

207 views
Skip to first unread message

Allen

unread,
Mar 20, 2013, 11:59:48 AM3/20/13
to mongod...@googlegroups.com
Is it necessary to include a replica set's arbiter in its connection string URI? I'm guessing no, but I wanted to get a definitive answer. Thanks!

Alistair Bush

unread,
Mar 20, 2013, 6:16:28 PM3/20/13
to mongod...@googlegroups.com
No, clients do not interact with arbiters at all.  

It is also not required to include all the primary/secondary servers in the connection string as the driver will query for this information.  Please note that it is best practice to have all primary/secondary servers in the connection string as it means the client will always be able to find a server to communicate with.

e.g.  If you had a replica set of 3 servers and your connection string only included 1.  If that server goes down then that client can't find the other replica set members.
Reply all
Reply to author
Forward
0 new messages