Skip to content

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

@yigui2

Description

@yigui2

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions