Commit 5cb4e031f700690e403aa8c73217fb450c0e5c45
1 parent
ed2d6076
修改服务续约和服务失效的配置
Showing
1 changed file
with
2 additions
and
2 deletions
user-service.yml
| ... | ... | @@ -52,9 +52,9 @@ eureka: |
| 52 | 52 | hostname: user-service |
| 53 | 53 | perferIpAddress: true |
| 54 | 54 | instance-id: ${spring.cloud.client.ipAddress}:${server.port} |
| 55 | - client: | |
| 56 | 55 | leaseRenewalIntervalInSeconds: 5 |
| 57 | - leaseExpirationDurationInSeconds: 12 | |
| 56 | + leaseExpirationDurationInSeconds: 15 | |
| 57 | + client: | |
| 58 | 58 | registerWithEureka: true |
| 59 | 59 | fetchRegistry: false |
| 60 | 60 | serviceUrl: | ... | ... |