Open dyc87112 opened 6 years ago
Feign 的fallback不生效,需要在springboot配置中开启hystrix
feign:
hystrix:
enabled: true
请问大神,我配置了熔断时间:
feign.hystrix.enabled=true hystrix.command.servera.execution.timeout.enabled=true hystrix.command.servera.execution.isolation.thread.timoutInMilliseconds=90000
ribbon.ReadTimeout=30000 ribbon.ConnectTimeout=30000
发现调用方法时还是在1秒中就熔断了,期望的90秒熔断没有效果,是什么原因呢?我使用的是springboot1.5.12
http://blog.didispace.com/springcloud3/
在微服务架构中,我们将系统拆分成了一个个的服务单元,各单元间通过服务注册与订阅的方式互相依赖。由于每个单元都在不同的进程中运行,依赖通过远程调用的方式执行,这样就有可能因为网络原因或是依赖服务自身问题出现调用故障或延迟,而这些问题会直接导致调用方的对外服务也出现延迟,若此时调用方的请求不断增加,最后就会出现因等待出现故