Commit 04acd0e3a959e0ba39b3dd231ca380e3f923f897

Authored by luotong
1 parent 43d4abdf

添加服务消费负载均衡配置

Showing 1 changed file with 20 additions and 0 deletions
class-service.yml
... ... @@ -96,6 +96,26 @@ eureka:
96 96 defaultZone: http://discovery:15200/eureka/
97 97 healthcheck:
98 98 enabled: true
  99 +
  100 +hystrix:
  101 + command:
  102 + default:
  103 + execution:
  104 + timeout:
  105 + enabled: true
  106 + isolation:
  107 + thread:
  108 + timeoutInMilliseconds: 60000
  109 +
  110 +#这个配置为true则取发现服务的注册地址(服务地址存储在DomainExtractingServerList,由EurekaRibbonClientConfiguration.ribbonServerList()创建)
  111 +#为false取本地配置文件的配置地址(服务地址存储在ConfigurationBasedServerList中,由RibbonClientConfiguration.ribbonServerList()创建)
  112 +ribbon:
  113 + eureka:
  114 + enabled: true
  115 + UseIPAddrForServer: true
  116 + ReadTimeout: 5000
  117 + ConnectTimeout: 10000
  118 +
99 119  
100 120 # 一些公共的常量配置
101 121 apiConfig:
... ...