com.netflix.client.ClientException: Load balancer does not have available server for client:

What:
Spring boot feignclient call other instance show below error:
com.netflix.client.ClientException: Load balancer does not have available server for client:

Why:
if eureka.client.fetchRegistry is false, the various shuffle methods in com.netflix.discovery.shared.Applications are not called and hence Applications.shuffleVirtualHostNameMap is never populated. This map is used later for look up in the method Applications.getInstancesByVirtualHostName that then fails.
How:
eureka:
  client:
    registerWithEureka: true
    fetchRegistry: true # change to true, is ok

Last:
Thanks

Comments

Popular posts from this blog

jquery datatable插件

跨平台开发介绍

php speed up source - timing task