Uploaded image for project: 'DataStax C# Driver for Apache Cassandra'
  1. CSHARP-188

Default load balancing policy should match the Java driver and be tokenaware

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.4
    • Component/s: None
    • Labels:
      None
    • Sprint:

      Description

      The default load balancing policy for the java driver is
      public static LoadBalancingPolicy defaultLoadBalancingPolicy()

      { // Note: balancing policies are stateful, so we can't store that in a static or that would screw thing // up if multiple Cluster instance are started in the same JVM. return new TokenAwarePolicy(new DCAwareRoundRobinPolicy()); }

      but for the C# driver it's the rather unfortunate RoundRobinPolicy
      public static ILoadBalancingPolicy DefaultLoadBalancingPolicy
      {
      get

      { return new RoundRobinPolicy(); }

      }

      It's certainly surprising, and I'd argue the C# default is a bad one.

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                jorge.gondra Jorge Bay Gondra
                Reporter:
                rssvihla Ryan Svihla (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: