I have configured my project architecture using Spring Boot, Eureka, Zuul, Ribbon frameworks. Its working fine but sometimes (rarely) getting the following exceptions:
- Caused by: com.netflix.client.ClientException: Load balancer does not have available server for client: service1
- Caused by: com.netflix.hystrix.exception.HystrixRuntimeException: service1 timed-out and no fallback available.
Below are my services configurations: Have a look and please let me know if I missed anything which causing the issues for above exceptions.
eureka service application.properties:
server.port=8070
spring.application.name=eureka_service
eureka.client.register-with-eureka=false
eureka.client.fetch-registry=false
eureka.instance.hostname=localhost
eureka.client.service-url.defaultZone=http://${eureka.instance.hostname}:8070/eureka/
logging.level.com.netflix.eureka=OFF
logging.level.com.netflix.discovery=OFF
zuul service application.properties:
server.port=8071
spring.application.name=zuul_service
zuul.prefix=/api
zuul.routes.service1.path=/service1/**
zuul.routes.service1.service-id=service1
eureka.client.register-with-eureka=true
eureka.client.fetch-registry=true
eureka.instance.hostname=localhost
eureka.client.service-url.defaultZone=http://${eureka.instance.hostname}:8070/eureka/
ribbon.eureka.enabled=true
service1 application.properties:
server.port=8072
spring.application.name=service1
eureka.client.register-with-eureka=true
eureka.client.fetch-registry=true
eureka.instance.hostname=localhost
eureka.client.service-url.defaultZone=http://${eureka.instance.hostname}:8070/eureka/
ribbon.eureka.enabled=true
Please let me know if I need to add any other configuration to resolve ? Thanks.