[GODRIVER-2086] Allow custom service names with srvServiceName URI option Created: 15/Jul/21 Updated: 01/Oct/21 Resolved: 24/Sep/21 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 1.8.0 |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Backlog - Core Eng Program Management Team | Assignee: | Benji Rewis (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | size-small | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Quarter: | FY22Q3 | ||||||||
| Upstream Changes Summary: |
DRIVERS Ticket Description
However, there's currently no way for me to use this because when I provide a connection url like
the drivers prepend "mongodb._tcp" to the provided url. It's not clear why it's required that the host _must start with "_mongodb._tcp". Why not let the user specify the actual DNS entry to query? I believe the same issue will exist for multiple orchestration frameworks such as Consul/Nomad and Kubernetes. Drivers should sync their URI options and seedlist discovery spec tests to this commit. Drivers should accept a new URI option srvServiceName that overrides the default "mongodb" service name for SRV lookup in both discovery and polling. |
||||||||
| Documentation Changes: | Not Needed | ||||||||
| Description |
|
We are using DCOS (marathon/mesos) to manage our services. DCOS generates SRV records for our mongos instances under a record that looks like
However, there's currently no way for me to use this because when I provide a connection url like
the drivers prepend "mongodb._tcp" to the provided url. It's not clear why it's required that the host _must start with "_mongodb._tcp". Why not let the user specify the actual DNS entry to query? I believe the same issue will exist for multiple orchestration frameworks such as Consul/Nomad and Kubernetes. Drivers should sync their URI options and seedlist discovery spec tests to this commit. Drivers should accept a new URI option srvServiceName that overrides the default "mongodb" service name for SRV lookup in both discovery and polling. |
| Comments |
| Comment by Githook User [ 24/Sep/21 ] |
|
Author: {'name': 'Benjamin Rewis', 'email': '32186188+benjirewis@users.noreply.github.com', 'username': 'benjirewis'}Message: |
| Comment by Benji Rewis (Inactive) [ 16/Sep/21 ] |