Netflix Ribbon: add/edit a LoadBalancerRule at runtime via Archaius
Asked Answered
V

1

9

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.

Vitrine answered 31/10, 2016 at 14:57 Comment(0)
F
4

Apparently this is not supported.

See https://github.com/spring-cloud/spring-cloud-netflix/issues/1438

Flavin answered 7/11, 2016 at 10:21 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.