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

Shard aware connections v2 #8

Merged

Commits on Nov 3, 2020

  1. rpc/server: made load balancing algorithm configurable

    Seastar support different load balancing algorithms that determine which
    shard will handle incoming connection. Added configuration option to
    rpc::server allowing to configure the listener load balancing algorithm.
    
    Signed-off-by: Michal Maslanka <[email protected]>
    mmaslankaprv committed Nov 3, 2020
    Configuration menu
    Copy the full SHA
    a866a95 View commit details
    Browse the repository at this point in the history
  2. rpc/connection_cache: made shard assignment depend on current node_id

    Added current node_id shift to outgoing connections shard assignment.
    In order to make sure that connections to the same node created on
    different nodes are assigned to different shards added node_id based
    offset to connections shard assignment. This approach is required to
    make use of deterministic incoming connection to shard assignment on the
    target node. If there would be no shift all connections to given node
    would be handled on the same set of shards.
    
    Signed-off-by: Michal Maslanka <[email protected]>
    mmaslankaprv committed Nov 3, 2020
    Configuration menu
    Copy the full SHA
    bb71f98 View commit details
    Browse the repository at this point in the history
  3. redpanda/application: using port based shard connections assignment

    Using port based shard connection assignment in RPC server. This makes
    incoming connection shard assignment deterministic.
    
    Signed-off-by: Michal Maslanka <[email protected]>
    mmaslankaprv committed Nov 3, 2020
    Configuration menu
    Copy the full SHA
    81964f7 View commit details
    Browse the repository at this point in the history