Try:
myService.ribbon.ServerListRefreshInterval=10000
where myService is the name of your target microservice.
UPDATE
After some digging of the source code, it turned out that LoadBalancerBuilder calls:
@Deprecated public ZoneAwareLoadBalancer(IClientConfig clientConfig, IRule rule, IPing ping, ServerList<T> serverList, ServerListFilter<T> filter) { super(clientConfig, rule, ping, serverList, filter); }
whose super:
@Deprecated public DynamicServerListLoadBalancer(IClientConfig clientConfig, IRule rule, IPing ping, ServerList<T> serverList, ServerListFilter<T> filter) { this( clientConfig, rule, ping, serverList, filter, new PollingServerListUpdater() ); }
Check out the PollingServerListUpdater constructors:
private static int LISTOFSERVERS_CACHE_REPEAT_INTERVAL = 30 * 1000;
The second method will allow us to override the default update interval. However, this is the first one that called, so it ignores the property.
UPDATE 2:
There is an open question about this: https://github.com/spring-cloud/spring-cloud-netflix/issues/1304