Commit 4097b0d3c5acb061d039dd2d46168b5d718f9306

Authored by luotong
1 parent 8a9744b2

添加 ribbon 配置

Showing 1 changed file with 19 additions and 0 deletions
class-service.yml
... ... @@ -81,6 +81,25 @@ endpoints:
81 81 enabled: true
82 82 health:
83 83 sensitive: false
  84 +
  85 +hystrix:
  86 + command:
  87 + default:
  88 + execution:
  89 + timeout:
  90 + enabled: true
  91 + isolation:
  92 + thread:
  93 + timeoutInMilliseconds: 60000
  94 +
  95 +#这个配置为true则取发现服务的注册地址(服务地址存储在DomainExtractingServerList,由EurekaRibbonClientConfiguration.ribbonServerList()创建)
  96 +#为false取本地配置文件的配置地址(服务地址存储在ConfigurationBasedServerList中,由RibbonClientConfiguration.ribbonServerList()创建)
  97 +ribbon:
  98 + eureka:
  99 + enabled: true
  100 + UseIPAddrForServer: true
  101 + ReadTimeout: 5000
  102 + ConnectTimeout: 10000
84 103  
85 104 eureka:
86 105 instance:
... ...