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

Support connecting to mongos'es behind a load balancer

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.9.1
    • Component/s: Connectivity
    • Labels:
      None

      The C# driver (and other drivers as well) do not currently support connecting to mongos'es deployed behind a load balancer, which is too bad, because deploying mongos'es behind a load balancer has many appealing operational benefits (e.g. the ease of adding/removing mongos instances without changes to the application connection string).

      This configuration causes a problem for the drivers, as currently implemented, because for queries that return large result sets the OP_GETMORE messages used to retrieve the next batch are sent on a different connection than the original OP_QUERY. Because the connections are through a load balancer, the OP_GETMORE messages almost invariably end up at the wrong mongos.

            Assignee:
            Unassigned Unassigned
            Reporter:
            robert@mongodb.com Robert Stam
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: