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

How to determine LoadBalancer choose server for a retry? #485

Open
yigui2 opened this issue Jul 7, 2021 · 0 comments
Open

How to determine LoadBalancer choose server for a retry? #485

yigui2 opened this issue Jul 7, 2021 · 0 comments

Comments

@yigui2
Copy link

yigui2 commented Jul 7, 2021

Both the interface IRule's method choose and ILoadBalancer's method chooseServer has only one parameter named key, so I can't choose the server diffrent for a retry.

I try to explain the issue with an example:
We have two Servers (Server A@zone1 and Server B@zone2) and my ribbon configuration is:
MaxAutoRetries=0
MaxAutoRetriesNextServer=1

I customizing the load balancing rule choose the Server A@zone1 allways normally.
How can I choose the Server A@zone2 for a retry?

Best regards!

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

No branches or pull requests

1 participant