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

add UseIPAddrForServer configuration to not require DNS for 2.x/master #162

Merged
merged 3 commits into from
Sep 9, 2014

Conversation

aspyker
Copy link
Contributor

@aspyker aspyker commented Sep 8, 2014

No description provided.

@cloudbees-pull-request-builder

ribbon-pull-requests #172 SUCCESS
This pull request looks good

@aspyker aspyker changed the title Use ip addr for server add UseIPAddrForServer configuration to not require DNS for 2.x/master Sep 8, 2014
@aspyker
Copy link
Contributor Author

aspyker commented Sep 8, 2014

Just a note that while I have tested the 1.x stream jars in an end to end application, for 2.x I have no such application, so the only testing I have performed is the unit test provided.

@@ -89,6 +90,8 @@ public void initWithNiwsConfig(IClientConfig clientConfig) {
prioritizeVipAddressBasedServers = Boolean.parseBoolean(""+clientConfig.getProperty(CommonClientConfigKey.PrioritizeVipAddressBasedServers, prioritizeVipAddressBasedServers));
datacenter = ConfigurationManager.getDeploymentContext().getDeploymentDatacenter();
targetRegion = (String) clientConfig.getProperty(CommonClientConfigKey.TargetRegion);

shouldUseIpAddr = clientConfig.getPropertyAsBoolean(CommonClientConfigKey.UseIPAddrForServer, false);

Choose a reason for hiding this comment

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

Instead of hardcoded false, we can use DefaultClientConfigImpl.DEFAULT_USEIPADDRESS_FOR_SERVER

@allenxwang
Copy link

@aspyker This PR looks good to me except for the two minor comments. Thanks!

@cloudbees-pull-request-builder

ribbon-pull-requests #174 SUCCESS
This pull request looks good

allenxwang pushed a commit that referenced this pull request Sep 9, 2014
add UseIPAddrForServer configuration to not require DNS for 2.x/master
@allenxwang allenxwang merged commit 159baec into Netflix:master Sep 9, 2014
@aspyker aspyker deleted the UseIPAddrForServer branch September 9, 2014 23: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