Module load_balancing

Source
Expand description

Load balancing configurations
Session can use any load balancing policy which implements the LoadBalancingPolicy trait
See the book for more information

Structs§

DefaultPolicy
The default load balancing policy.
DefaultPolicyBuilder
The intended way to instantiate the DefaultPolicy.
LatencyAwarenessBuilder
The builder of LatencyAwareness module of DefaultPolicy.
Plan
The list of targets constituting the query plan. Target here is a pair (NodeRef<'a>, Shard).
RoutingInfo
Represents info about statement that can be used by load balancing policies.

Traits§

LoadBalancingPolicy
Policy that decides which nodes and shards to contact for each request.

Type Aliases§

FallbackPlan
The fallback list of nodes in the request plan.