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

EUREKA-1149 Add injectable customizable EndpointRandomizer #1194

Merged
merged 1 commit into from
May 31, 2019

Conversation

mgtriffid
Copy link
Contributor

This is another attempt to fix #1149. This time tried to take comments from #1151 into account.

Difficult thing here is that there are actually two randomizers across Eureka codebase. And the one that is used by DiscoveryClient ends up being just a call to static method. So I decided to not touch existing randomizer that is a field of DiscoveryClient (because I have no idea where can it be used) and introduced new field. This EndpointRandomizer is passed to ZoneAffinityClusterResolver through some chain of calls. I have left behavior unchanged, just made it customizeable.

@pparth
Copy link

pparth commented May 6, 2019

Anyone taking a look at this PR ?

@troshko111 troshko111 requested a review from elandau May 30, 2019 22:05
@troshko111
Copy link
Contributor

Thanks for the PR @mgtriffid!

@troshko111 troshko111 merged commit c416de5 into Netflix:master May 31, 2019
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

Successfully merging this pull request may close these issues.

ServiceUrlRandomizer based on hostname may lead to uneven distribution of clients
4 participants