Skip to content

Commit ecb4a9f

Browse files
committed
docs: mention LWT optimisation in default policy
1 parent 475be40 commit ecb4a9f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/source/load-balancing/default-policy.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,5 +166,11 @@ And only if latency awareness is enabled:
166166

167167
If no preferred datacenter is specified, all nodes are treated as local ones.
168168

169-
Replicas in the same priority groups are shuffled. Non-replicas are randomly
169+
Replicas in the same priority groups are shuffled[^*]. Non-replicas are randomly
170170
rotated (similarly to a round robin with a random index).
171+
172+
[^*]: There is an optimisation implemented for LWT requests[^**] that routes them
173+
to the replicas in the ring order (as it prevents contention due to Paxos conflicts),
174+
so replicas in that case are not shuffled in groups at all.
175+
176+
[^**]: In order for the optimisation to be applied, LWT statements must be prepared before.

0 commit comments

Comments
 (0)