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

can i Custom load balancing type? just like ,random,hash,Round... and more? #419

Open
zhuxiujia opened this issue Feb 23, 2020 · 3 comments
Labels
A-balance Area: The tower "balance" middleware C-feature-request Category: A feature request, i.e: not implemented / a PR. S-waiting-on-author Status: awaiting some action (such as code changes) from the PR or issue author.

Comments

@zhuxiujia
Copy link

can i Custom load balancing type? just like ,random,hash,Round... and more?

@jonhoo
Copy link
Collaborator

jonhoo commented Mar 31, 2020

Hi @zhuxiujia! Can you give some more details about what your use-case is, what you've tried, and what specifically you'd like to see in tower?

@jonhoo jonhoo added A-balance Area: The tower "balance" middleware C-feature-request Category: A feature request, i.e: not implemented / a PR. S-waiting-on-author Status: awaiting some action (such as code changes) from the PR or issue author. labels Mar 31, 2020
@zhuxiujia
Copy link
Author

zhuxiujia commented Apr 1, 2020

Can you give some more details about what your use-case is, what you've tried, and what specifically you'd like to see in tower?

just like 'spring cloud ribbon' , this java lib have some Common load balancing algorithms.
for example:
i want an RPC Callers always access fixed one server( for keep some session or auth or Database transactions),i can use hash load balancing algorithm Complete this requirement。

I hope tower to add more load balancing algorithms,so i can Choose the right one to use it.

@jonhoo
Copy link
Collaborator

jonhoo commented Apr 1, 2020

I think you should be able to do that using the new "steer" module that @akshayknarayan developed. It essentially allows you to choose which backing service should receive a particular request. Does that satisfy your use-case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-balance Area: The tower "balance" middleware C-feature-request Category: A feature request, i.e: not implemented / a PR. S-waiting-on-author Status: awaiting some action (such as code changes) from the PR or issue author.
Projects
None yet
Development

No branches or pull requests

2 participants