Commit e6372e064a1e2cc47778d31aea14f924e6ea7eba
1 parent
41fe48be
解决测试环境上,gateway网关路由超时问题
Showing
1 changed file
with
4 additions
and
1 deletions
gateway.yml
| ... | ... | @@ -17,6 +17,9 @@ endpoints: |
| 17 | 17 | sensitive: false |
| 18 | 18 | |
| 19 | 19 | zuul: |
| 20 | + host: | |
| 21 | + connect-timeout-millis: 10000 | |
| 22 | + socket-timeout-millis: 60000 | |
| 20 | 23 | routes: |
| 21 | 24 | users: |
| 22 | 25 | #url: http://user-service:16100 |
| ... | ... | @@ -33,7 +36,7 @@ hystrix: |
| 33 | 36 | enabled: true |
| 34 | 37 | isolation: |
| 35 | 38 | thread: |
| 36 | - timeoutInMilliseconds: 10000 | |
| 39 | + timeoutInMilliseconds: 60000 | |
| 37 | 40 | |
| 38 | 41 | #这个配置为true则取发现服务的注册地址(服务地址存储在DomainExtractingServerList,由EurekaRibbonClientConfiguration.ribbonServerList()创建) |
| 39 | 42 | #为false取本地配置文件的配置地址(服务地址存储在ConfigurationBasedServerList中,由RibbonClientConfiguration.ribbonServerList()创建) | ... | ... |