zuul超时及重试配置


配置实例

##timeout config hystrix:  command:  default:  execution:  timeout:  enabled: true  isolation:  thread:  timeoutInMilliseconds: 60000 ribbon:  ReadTimeout: 60000  ConnectTimeout: 60000  MaxAutoRetries: 0  MaxAutoRetriesNextServer: 1  eureka:  enabled: false zuul:  max:  host:  connections: 500  host:  socket-timeout-millis: 60000  connect-timeout-millis: 60000

MaxAutoRetries

Max number of retries on the same server (excluding the first try)

MaxAutoRetriesNextServer

Max number of next servers to retry (excluding the first server)

转发自:https://segmentfault.com/a/1190000007290888


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM