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