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
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment