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