refactor: change eureka properties.

refer to https://www.cnblogs.com/zhangs1986/p/10529815.html
This commit is contained in:
liqiang-fit2cloud 2023-07-12 17:30:19 +08:00 committed by 刘瑞斌
parent 8b880adcbf
commit fadc95d539
2 changed files with 7 additions and 0 deletions

View File

@ -11,3 +11,6 @@ eureka.client.service-url.defaultZone=http://localhost:8761/eureka/
logging.file.path=/opt/metersphere/logs/${spring.application.name} logging.file.path=/opt/metersphere/logs/${spring.application.name}
spring.redis.redisson.file=file:/opt/metersphere/conf/redisson.yml spring.redis.redisson.file=file:/opt/metersphere/conf/redisson.yml
eureka.server.enable-self-preservation=false
eureka.server.eviction-interval-timer-in-ms=10000

View File

@ -98,6 +98,10 @@ spring.session.store-type=none
eureka.client.service-url.defaultZone=http://localhost:8761/eureka/ eureka.client.service-url.defaultZone=http://localhost:8761/eureka/
eureka.instance.prefer-ip-address=true eureka.instance.prefer-ip-address=true
eureka.instance.instance-id=${spring.cloud.client.ip-address}:${server.port} eureka.instance.instance-id=${spring.cloud.client.ip-address}:${server.port}
eureka.instance.lease-renewal-interval-in-seconds=5
eureka.instance.lease-expiration-duration-in-seconds=15
eureka.client.fetch-registry=true
eureka.client.registry-fetch-interval-seconds=10
# #
# redisson # redisson
spring.redis.redisson.file=file:/opt/metersphere/conf/redisson.yml spring.redis.redisson.file=file:/opt/metersphere/conf/redisson.yml