DCAwareRoundRobinPolicy ClassA C# client driver for Apache Cassandra
A data-center aware Round-robin load balancing policy.

This policy provides round-robin queries over the node of the local datacenter. It also includes in the query plans returned a configurable number of hosts in the remote datacenters, but those are always tried after the local nodes. In other words, this policy guarantees that no host in a remote datacenter will be queried unless no host in the local datacenter can be reached.

If used with a single datacenter, this policy is equivalent to the

LoadBalancingPolicy.RoundRobin
policy, but its DC awareness incurs a slight overhead so the
LoadBalancingPolicy.RoundRobin
policy could be prefered to this policy in that case.

Inheritance Hierarchy

OnlineSystem Object
  Cassandra DCAwareRoundRobinPolicy

Namespace: Cassandra
Assembly: Cassandra (in Cassandra.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public class DCAwareRoundRobinPolicy : ILoadBalancingPolicy
See Also