DefaultLoadBalancingPolicy Class |
For most workloads, the query plan will be determined in a similar way to TokenAwarePolicy(DCAwareRoundRobinPolicy).
For graph analytics queries, this policy sets the preferred analytics graph server previously obtained by driver as the first host in the query plan. After this host, the query plan is the same as the one returned for other workloads.
Namespace: Cassandra
public class DefaultLoadBalancingPolicy : ILoadBalancingPolicy
The DefaultLoadBalancingPolicy type exposes the following members.
Name | Description | |
---|---|---|
DefaultLoadBalancingPolicy |
Creates a new datacenter aware round robin policy given the name of the local
datacenter. The name of the local datacenter provided must be the local datacenter name as known by the server. The policy created will ignore all remote hosts. |
Name | Description | |
---|---|---|
Distance |
Return the HostDistance for the provided host. This policy consider nodes
in the local datacenter as Local and the rest
is Ignored.
| |
Initialize |
Initializes the policy.
| |
NewQueryPlan |
Returns the hosts to used for a query.
|