Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions presto-docs/src/main/sphinx/router/scheduler.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,26 @@ multiple clusters.

* ``RANDOM_CHOICE``

Randomly selecting a cluster from a list of candidates.
Randomly selecting a cluster from a list of candidates.

* ``ROUND_ROBIN``

Selecting clusters from a list of candidates in turn. Note that as the algorithm
keeps the state of the selected index, it can only be used when the candidates
are always consistent.
Selecting clusters from a list of candidates in turn. Because the algorithm
keeps the state of the selected index, it can only be used when the candidates
are always consistent.

* ``USER_HASH``

Selecting a clusters by hashing the username. This ensures queries from the same
user will always be routed to the same cluster.
Selecting a cluster by hashing the username. This ensures queries from the same
user are always routed to the same cluster.

* ``WEIGHTED_RANDOM_CHOICE``

Randomly selecting a cluster from a list of candidates with pre-defined weights.
Clusters with higher weights have higher opportunity to be selected.
Randomly selecting a cluster from a list of candidates with pre-defined weights.
Clusters with higher weights have higher opportunity to be selected.

* ``WEIGHTED_ROUND_ROBIN``

Selecting clusters from a list of candidates with pre-defined weights in turn.
Note that similar to the `ROUND_ROBIN` approach, this algorithm keeps the state
of the selected index so candidates and weights should be consistent.
Selecting clusters from a list of candidates with pre-defined weights in turn.
Similar to the `ROUND_ROBIN` approach, this algorithm keeps the state
of the selected index so candidates and weights should be consistent.
Loading