Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-973

Document driver behavior for handling multiple mongoS in the connection string

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Documentation
    • None
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            alex.komyagin@mongodb.com Alexander Komyagin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: