Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.x: Add RandomTwoChoice load balancing policy #198

Open
wants to merge 1 commit into
base: scylla-3.x
Choose a base branch
from

Commits on Mar 9, 2023

  1. Add RandomTwoChoice load balancing policy

    The RandomTwoChoice policy is a wrapper load balancing policy that
    adds the "Power of 2 Choice" algorithm to its child policy. It will
    compare the first two hosts returned from the child policy query plan,
    and will first return the host with the target shard having fewer
    inflight requests. The rest of the child query plan will be left intact.
    
    It is intended to be used with TokenAwarePolicy and RoundRobinPolicy,
    to send queries to the replica nodes by always avoiding the worst option
    (the replica with the target shard having the most inflight requests will not be chosen).
    Gor027 committed Mar 9, 2023
    Configuration menu
    Copy the full SHA
    2307011 View commit details
    Browse the repository at this point in the history