refactor: change eureka properties.
refer to https://www.cnblogs.com/zhangs1986/p/10529815.html
This commit is contained in:
parent
8b880adcbf
commit
fadc95d539
|
@ -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
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue