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

More load balancing policies #5154

Closed
2 tasks done
tsegismont opened this issue Mar 15, 2024 · 2 comments · Fixed by #5157
Closed
2 tasks done

More load balancing policies #5154

tsegismont opened this issue Mar 15, 2024 · 2 comments · Fixed by #5157

Comments

@tsegismont
Copy link
Contributor

tsegismont commented Mar 15, 2024

In addition to the existing (round-robin and least request) policies in io.vertx.core.loadbalancing.LoadBalancer, we should have:

  • random
  • power of two choices

Possible contributor @machine424

@tsegismont
Copy link
Contributor Author

@vietj can you elaborate about the hashing load balancing policies you talked to me about off-list? I understand this could be used to solve different cases, including sticky web sessions

@vietj
Copy link
Member

vietj commented Mar 15, 2024

this is used indeed for sticky session

this policy requires API modification because we need to pass this ID from the request (HTTP but not necessarily) to the load balancing algorithm.

most likely EndpointResolver#lookupEndpoint(ContextInternal,A) needs to have this ID as parameter.

Users would use it using RequestOptions for HTTP requests and optionally set it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants