Spring Cloud Zuul 在版本Edgware.RELEASE断路超时配置无法生效问题
2018-01-20 20:08
776 查看
搭建Zuul工程时,用的SpringCloud版本为Edgware.RELEASE(没上更高的版本,因为部署环境tomcat和jdk的限制,更高的怕不兼容)。在改网关断路器的超时时间时,试了各种姿势,从zuul本身到ribbon到hystrix配置,均无法生效。试过的配置参数如下:
zuul:
ribbon:
hystrix:
超时设置依旧没有成功,zuul的超时断路依旧是默认的2s。google各种方案无解,只能降级为Dalston.SR5。问题解决。
zuul:
zuul.retryable=true zuul.ribbon-isolation-strategy=thread
zuul.host.connect-timeout-millis=30000 zuul.host.socket-timeout-millis=30000
ribbon:
ribbon.ReadTimeout=30000 ribbon.SocketTimeout=30000
hystrix:
hystrix.command.default.execution.timeout.enable=false hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds=60000 hystrix.command.default.execution.isolation.thread.ribbon.ReadTimeout=30000 hystrix.command.default.execution.isolation.thread.ribbon.ConnectTimeout=30000
超时设置依旧没有成功,zuul的超时断路依旧是默认的2s。google各种方案无解,只能降级为Dalston.SR5。问题解决。
相关文章推荐
- spring cloud:Edgware.RELEASE版本hystrix超时新坑
- Spring Cloud Edgware新特性之一:解决Eureka中Jersey 1.x版本过旧的问题-不使用Jersey
- 关于在Spring Cloud Feign工程中使用Ribbon配置不生效的问题
- Spring Cloud Edgware新特性之二:如何配置Zuul的Hystrix线程池
- 关于在Spring Cloud Feign工程中使用Hystrix配置不生效的问题
- 关于Dalston.SR3版本的spring cloud,用feign客户端调用服务hystrix不能生效的问题
- 【Spring】spring-mvc hibernate druid jdbc等数据源事务配置详解(解决注解事务不生效问题)
- 无法打开输入文件“optimized.lib” 编译osgEarth2.8+VS2013+CMake3.4.0在Release版本的问题
- 配置Hibernate4,Spring和Hibernate版本兼容问题
- Spring配置Quartz出现的问题(版本)问题
- spring boot jar 打版生产版本 配置文件问题
- SpringBoot1.5.2安装配置--1.5.2版本问题
- cloudstack 4.3.2版本手动配置虚拟机IP不生效问题
- Spring 配置mysql事务不生效问题解决
- Qt5 QML程序Release版本发布程序无法显示的问题解决过程。
- Spring配置文件打包到jar中无法加载问题之解决方案
- 解决Spring配置文件无法读取properties属性问题
- Ubuntu下Eclipse安装SVN插件时配置eclipse.ini的环境变量但无法生效的问题
- mybatis-spring配置正常事务却无法回滚(建表问题)
- Spring配置文件context:property-placeholder无法载入属性问题