人生,即使在最困难的时期,也不能放弃学习, 不能与时代脱节 ---- 勉励处于困难时期的自己.
spring-cloud feign hystrix配置熔断为什么不生效的原因
作者:yihaomen 日期:2017-05-26
今天特地测试了用feign来作为负载均衡器做测试,配置很简单,而且也能很好的工作,但突然,我想既然用了feign,干脆也把熔断也测试了,也就是hystrix支持的熔断. 没想到反而在这个上面花了不少时间。死活不进入熔断配置的方法。一般报两种错:
1. Service Look up error: Load balancer does not have available server for client...
2. feign connection refused: connect executing get, 也就是找不到微服务,连接不上,因为熔断测试的时候是停止微服务测试的。
1. Service Look up error: Load balancer does not have available server for client...
2. feign connection refused: connect executing get, 也就是找不到微服务,连接不上,因为熔断测试的时候是停止微服务测试的。
Tags: spring-colud