Was this page helpful?
DefaultLoadBalancingPolicy¶
policies/loadBalancing~DefaultLoadBalancingPolicy(configopt)
This load balancing policy replicates the behavior of the Rust Driver Default Load Balancing Policy.
It can be configured to be datacenter-aware, rack-aware and token-aware. When the policy is datacenter-aware, you can configure whether to allow datacenter failover (sending query to a node from a remote datacenter).
Constructor¶
new DefaultLoadBalancingPolicy(configopt)
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
config |
LoadBalancingConfig |
<optional> |
Methods¶
getOptions()
Gets an associative array containing the policy options.
(package) getRustConfiguration() → {_rust.LoadBalancingConfig}
Returns:
- Type
- _rust.LoadBalancingConfig