Skip to content

Commit 4efc84d

Browse files
authored
Merge pull request #777 from wprzytula/rack-awareness-without-token-awareness
default policy: Rack awareness without token awareness
2 parents 5d59ae7 + 0fca0db commit 4efc84d

File tree

3 files changed

+140
-91
lines changed

3 files changed

+140
-91
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,16 @@ policy to prioritize nodes based on their location. It has three modes:
4444

4545
When a datacenter `"my_dc"` is preferred, the policy will treat nodes in `"my_dc"`
4646
as "local" nodes, and nodes in other datacenters as "remote" nodes. This affects
47-
the order in which nodes are returned by the policy when selecting replicas for
47+
the order in which nodes are returned by the policy when selecting nodes for
4848
read or write operations. If no datacenter is preferred, the policy will treat
4949
all nodes as local nodes.
5050

5151
`preferences` allow the load balancing policy to prioritize nodes based on their
5252
availability zones (racks) in the preferred datacenter, too. When a datacenter
5353
and a rack are preferred, the policy will first return replicas in the local rack
5454
in the preferred datacenter, and then the other replicas in the datacenter
55-
(followed by remote replicas).
55+
(followed by remote replicas). After replicas, the other node will be ordered
56+
similarly, too (local rack nodes, local datacenter nodes, remote nodes).
5657

5758
When datacenter failover is disabled (`permit_dc_failover` is set to
5859
false), the default policy will only include local nodes in load balancing

0 commit comments

Comments
 (0)