File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
docs/source/load-balancing Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,12 @@ awareness enabled and latency-awareness disabled.
3636
3737## Configuration
3838
39- Load balancing policies can be configured via execution profiles. In the code
40- sample provided, a new execution profile is created using
39+ Load balancing policies can be configured in three different ways (sorted by descending precedence):
40+ 1 . directly on the ` Statement ` , ` PreparedStatement ` or ` Batch ` (` Statement::set_load_balancing_policy() ` )
41+ 2 . execution profile set on the statement (` Statement::set_execution_profile_handle() ` )
42+ 3 . default execution profile set on the session (` SessionBuilder::default_execution_profile_handle() ` )
43+
44+ In the code sample provided, a new execution profile is created using
4145` ExecutionProfile::builder() ` , and the load balancing policy is set to the
4246` DefaultPolicy ` using ` .load_balancing_policy(policy) ` .
4347
You can’t perform that action at this time.
0 commit comments