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

Routing key based load balancing with consistent hashing implementation #5200

Merged
merged 1 commit into from
May 11, 2024

Conversation

vietj
Copy link
Member

@vietj vietj commented May 9, 2024

  • refactor the load balancer / address resolver interactions to accommodate the requirements of implement consistent hashing
  • consistent hashing implementation
  • HTTP client give opportunity to let user specify an hashing key for stickiness

@vietj vietj added this to the 5.0.0 milestone May 9, 2024
@vietj vietj self-assigned this May 9, 2024
@vietj vietj linked an issue May 9, 2024 that may be closed by this pull request
@vietj vietj force-pushed the consistent-hashing branch 3 times, most recently from 0152d5e to 0379d1e Compare May 10, 2024 13:28
…implementation.

This refactors the state management between the endpoint resolver, address resolver and load balancing so that the endpoint selector is initialized with the initial view of the endpoints provided by the address resolver using a builder. Subsequent updates of the list of endpoints can be created and keep up to date the view of the load balancer selector. This is now required since the endpoint selector of the load balancer might compute data that needs to be in sync with the list of endpoints, such as the consistent hashing selector that needs to create a ring of endpoints.
@vietj vietj changed the title Sticky load balancing with consistent hashing Enable routing key based load balancing with consistent hashing implementation May 11, 2024
@vietj vietj changed the title Enable routing key based load balancing with consistent hashing implementation Routing key based load balancing with consistent hashing implementation May 11, 2024
@vietj vietj merged commit efadf3d into master May 11, 2024
6 of 7 checks passed
@vietj vietj deleted the consistent-hashing branch May 11, 2024 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hash based load balancing policy
1 participant