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/edit a LoadBalancerRule at runtime via Archaius #1438

Closed
alfre86 opened this issue Nov 2, 2016 · 1 comment
Closed

Add/edit a LoadBalancerRule at runtime via Archaius #1438

alfre86 opened this issue Nov 2, 2016 · 1 comment

Comments

@alfre86
Copy link

alfre86 commented Nov 2, 2016

My goal is to be able to add/edit a Ribbon LoadBalancerRule at runtime via Archaius.

myService.ribbon.NFLoadBalancerRuleClassName=com.netflix.loadbalancer.WeightedResponseTimeRule

I'm trying to change the property NFLoadBalancerRuleClassName at runtime via Archaius. I see the archaius log that notifies me that the property was changed, but ribbon doesn't refresh with the new rule and still use the old rule.

[pollingConfigurationSource] | DEBUG | com.netflix.config.DynamicPropertyUpdater | addOrChangeProperty | adding property key [myService.ribbon.NFLoadBalancerRuleClassName], value [com.netflix.loadbalancer.WeightedResponseTimeRule]

Am I missing something?

I am using the 1.2.1.RELEASE version of spring cloud.

@spencergibb
Copy link
Member

@alfre86 spring-cloud-netflix uses the spring environment as the source of configuration. We add an adapter to archaius to read from the spring environment. We don't support the opposite.

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

2 participants