[CSHARP-1004] Auto-discovery of mongos routers Created: 24/Jun/14  Updated: 11/Mar/19  Resolved: 06/Apr/15

Status: Closed
Project: C# Driver
Component/s: Connectivity
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Major - P3
Reporter: Will Shulman Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to CSHARP-1007 Support connecting to mongos'es behin... Closed

 Description   

It would be great of the driver could auto-discover mongos routers so that they do not need to be added to connection strings as routers are added to a sharded system



 Comments   
Comment by Craig Wilson [ 06/Apr/15 ]

Currently, the server doesn't support the ability to enable this feature. When/if the server does, we can re-open this or open a new ticket.

Comment by Robert Stam [ 26/Jun/14 ]

An alternative approach that would have appealing operational benefits, but isn't currently supported, is to deploy a set of mongos'es behind a load balancer.

I'm linking to a related ticket suggesting that we support that configuration.

Comment by Craig Wilson [ 25/Jun/14 ]

Hi Will,

Thanks for the idea. There is lots of interest in this. There is also a lot of problems that need to be resolved and it isn't solely a driver issue and would likely need some server support as well. Some questions off the top of my head...

1. How many mongos' do we discover? There could be hundreds spread across the world.
2. How do we determine which mongos' to include? We don't have locality or tagging available.
3. I'm sure there are many more

The driver is constructed in such a way that adding this in wouldn't be difficult, but some steps are needed before we do this.

Craig

Generated at Wed Feb 07 21:38:25 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.