zoukankan      html  css  js  c++  java
  • zuul超时及重试配置1

    eureka:
      client:
        register-with-eureka: true
        serviceUrl:
          defaultZone: http://localhost:8761/eureka/
    server:
      port: 8765
    spring:
      application:
        name: gateway-zuul
    
    
    zuul:
      retryable: true
      routes:
           users:
             path: /ecom/**
             serviceId: service-hi
    
    
    
    #timeout config
    hystrix:
      command:
        default:
          execution:
            timeout:
              enabled: true
            isolation:
              thread:
                timeoutInMilliseconds: 80000
    service-hi:
     ribbon:
      ReadTimeout: 1000   //如果持续熔断,不能重试,则超时时间设的更小
      SocketTimeout: 1000
      ConnectTimeout: 1000
      MaxAutoRetries: 0
      MaxAutoRetriesNextServer: 1
      eureka:
        enabled: true
  • 相关阅读:
    node
    ionic
    关于websocket和ajax无刷新
    HTML图片热区
    npm -D -S -g -i 以及安装技巧
    es6 webpack转es5
    es6
    es6
    ssh tunnel
    vim上次和下次光标位置
  • 原文地址:https://www.cnblogs.com/tiancai/p/9590682.html
Copyright © 2011-2022 走看看