[DOCS-4992] Clarify that the hostname(s) in a Connection String URI is/are a seed host/list Created: 12/Mar/15  Updated: 30/Oct/23  Resolved: 15/Feb/17

Status: Closed
Project: Documentation
Component/s: drivers, manual
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Improvement Priority: Major - P3
Reporter: Ronan Bohan Assignee: Kay Kim (Inactive)
Resolution: Done Votes: 0
Labels: bite-sized
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to DOCS-4886 To make initial discovery efficient, ... Closed
is related to DOCS-4890 Warn against non-canonical replica se... Closed
Participants:
Days since reply: 7 years ago
Story Points: 0.25

 Description   

A driver will use the connection string URI to make the initial connection to a mongod/mongos instance but will establish new connections once it detects that it is connected to a replica set or sharded cluster and the hostname used to connect doesn't match that used to define the replica set / sharded cluster.

The implication is that the driver needs to be able to resolve the 'internal' names used to define the mongo cluster, not just the hostname/ip provided in the original (client supplied) URI.

Recommend updating the following docs page to clarify that 'host1' is just a seed host and the driver will make additional connections based on the cluster configuration: http://docs.mongodb.org/manual/reference/connection-string/

Clarification could also be added to all the driver documentation pages.



 Comments   
Comment by Githook User [ 15/Feb/17 ]

Author:

{u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}

Message: DOCS-9686,DOCS-4992 connection string hostname clarifications
Branch: v3.2
https://github.com/mongodb/docs/commit/5271ab08ac033cf06ddd6941adc7a9baff6a39bb

Comment by Githook User [ 15/Feb/17 ]

Author:

{u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}

Message: DOCS-9686,DOCS-4992 connection string hostname clarifications
Branch: master
https://github.com/mongodb/docs/commit/647af67a205e215eb4eddb7610e48fedd5486445

Comment by Jonathan Abrahams [ 18/Jun/15 ]

The detail about how to provide more than 1 mongos in a connection string URI is not mentioned. It might also be worthwhile to mention this capability in the Sharding section.

Generated at Thu Feb 08 07:49:21 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.