Mork_LD
2018-08-12 10:25spring cloud feign 启用hystrix引发的调用问题
10版本:
spring cloud :Edgware.SR3(使用 spring cloud starter openfeign 1.4.4)
springboot :1.5.12
问题:
我使用feign.hystrix.enable=true.启用了hystrix,然后我需要的效果是达到设置的超时时间才需要进入feignclient 注解的fallback方法. 但是!!!现在我只要一启用了feign.hystrix.enable=true这个配置,进行调用时,直接进入了fallback方法.然而我手动配置的超时时间不生效.
使用的配置如下:
feign:
hystrix:
enabled: true
okhttp:
enabled: true
httpclient:
enabled: false
hystrix:
threadpool:
default:
coreSize: 500
maxQueueSize: 1000
queueSizeRejectionThreshold: 800
command:
default:
execution:
timeout:
enabled: true
isolation:
thread:
timeoutInMilliseconds: 60000
ribbon:
eureka:
enabled: true
ReadTimeout: 60000
ConnectTimeout: 60000
请大家帮忙看看.Thx
- 点赞
- 回答
- 收藏
- 复制链接分享
1条回答
为你推荐
- 微服务调用服务时候传递参数问题
- spring
- java
- java-ee
- 2个回答
- Feign接收可以忽略大小写吗?FeignClient调用远程接口,如果对方接口的返回报文的属性是大写字母开头,就无法映射到定义的实体对象。
- java
- 1个回答
- springCloud feignClient问题,服务层调用另一服务的controller层,一直报not found
- spring
- java
- 2个回答
- springcloud zookeeper注册中心,在客服端用restTemplate 访问,第一次访问正常,第二次以后都是失败
- spring
- java
- 1个回答
- feign的使用以及zuul是否与feign在功能上重复了
- spring
- 2个回答
换一换