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

Support configuring scheme for Server #340

Merged
merged 3 commits into from
Jun 15, 2017

Conversation

mattnelson
Copy link
Contributor

Support for a Server to optionally have a scheme. This allows for a ServerList to support instances with different schemes which enables the gradual migration to secure services without a big bang flip over.

Related to #275 which could not be accepted due to concerns about passivity. This change will allow me to extend ConfigurationBasedServerList and provide the scheme/port on construction of the Server and abstracts the ribbon client IsSecure/SecurePort properties into the individual Server instance.

Without this change I will likely be forced to fork ribbon internally, which I would really like to avoid doing. Added a plethora of tests increase the probability of acceptance.

@mattnelson
Copy link
Contributor Author

@twicksell @elandau @qiangdavidliu @tcellucci
Can I get a general idea of where you stand on this PR? The changes are isolated to ribbon-loadbalancer which is listed[1] as one of the modules still used at scale within Netflix. I want to know if I should just give you some time or if I should move on.

[1] https://github.com/Netflix/ribbon#project-status-on-maintenance

Copy link
Contributor

@qiangdavidliu qiangdavidliu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -93,6 +94,14 @@ public Server(String host, int port) {
this.id = host + ":" + port;
isAliveFlag = false;
}

public Server(String scheme, String host, int port) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor nit, can you also update the other constructor to call this(null, host, port)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed on 6646ac8

@qiangdavidliu qiangdavidliu merged commit ec74ad5 into Netflix:master Jun 15, 2017
@qiangdavidliu
Copy link
Contributor

Thanks for the contrib @mattnelson

@mattnelson mattnelson deleted the server_scheme branch June 15, 2017 22:36
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.

3 participants