[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: |
|
||||||||||||
| 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: |
| 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: |
| 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. |