[CSHARP-973] Document driver behavior for handling multiple mongoS in the connection string Created: 20/May/14  Updated: 04/Apr/15  Resolved: 04/Apr/15

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

Type: Task Priority: Major - P3
Reporter: Alexander Komyagin Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

sharded cluster



 Description   

If multiple mongoS are provided, for every connection the driver randomly selects one of those with the lowest ping time: https://github.com/mongodb/mongo-csharp-driver/blob/v1.x/MongoDB.Driver/Communication/Proxies/ShardedMongoServerProxy.cs#L67-L90

We should document the logic so users will know what to expect.



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

This is the standard behavior for all next-gen drivers and is specified by the server selection specification.

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