Commit 16dcf98e7a45d5d093f5ae09f0ec1ea99a128b74

Authored by lixzh
1 parent 02d3905c

更新配置文件

Showing 1 changed file with 6 additions and 2 deletions
gateway.yml
... ... @@ -171,11 +171,15 @@ hystrix:
171 171 thread:
172 172 timeoutInMilliseconds: 10000
173 173  
  174 +#这个配置为true则取发现服务的注册地址(服务地址存储在DomainExtractingServerList,由EurekaRibbonClientConfiguration.ribbonServerList()创建)
  175 +#为false取本地配置文件的配置地址(服务地址存储在ConfigurationBasedServerList中,由RibbonClientConfiguration.ribbonServerList()创建)
174 176 ribbon:
175 177 eureka:
176   - enabled: false
  178 + enabled: true
  179 + UseIPAddrForServer: true
177 180 ReadTimeout: 5000
178 181 ConnectTimeout: 10000
  182 +
179 183  
180 184 eureka:
181 185 instance:
... ... @@ -183,7 +187,7 @@ eureka:
183 187 perferIpAddress: true
184 188 client:
185 189 registerWithEureka: true
186   - fetchRegistry: false
  190 + fetchRegistry: true
187 191 serviceUrl:
188 192 defaultZone: http://discovery:15200/eureka/
189 193  
... ...