修改开发环境eureka 心跳时间,方便开发调试

This commit is contained in:
wangiegie@gmail.com 2018-02-02 17:32:00 +08:00
parent dd2c2fdcb6
commit fcddc804cc
11 changed files with 21 additions and 2 deletions

View File

@ -18,6 +18,8 @@ spring:
eureka:
instance:
prefer-ip-address: true
lease-renewal-interval-in-seconds: 5
lease-expiration-duration-in-seconds: 20
client:
serviceUrl:
defaultZone: http://pig:gip6666@localhost:1025/eureka

View File

@ -151,7 +151,7 @@
</logger>
<!-- root级别 DEBUG -->
<root level="DEBUG">
<root level="INFO">
<!-- 控制台输出 -->
<appender-ref ref="STDOUT" />
<!-- 文件输出 -->

View File

@ -17,9 +17,12 @@ spring:
eureka:
instance:
prefer-ip-address: true
lease-renewal-interval-in-seconds: 5
lease-expiration-duration-in-seconds: 20
client:
serviceUrl:
defaultZone: http://pig:gip6666@localhost:1025/eureka
---
spring:
profiles: prd

View File

@ -22,4 +22,4 @@ eureka:
hostname: localhost
server: #配置属性,但由于 Eureka 自我保护模式以及心跳周期长的原因,经常会遇到 Eureka Server 不剔除已关停的节点的问题
enable-self-preservation: false
eviction-interval-timer-in-ms: 100
eviction-interval-timer-in-ms: 5000

View File

@ -17,6 +17,8 @@ spring:
eureka:
instance:
prefer-ip-address: true
lease-renewal-interval-in-seconds: 5
lease-expiration-duration-in-seconds: 20
client:
serviceUrl:
defaultZone: http://pig:gip6666@localhost:1025/eureka

View File

@ -17,6 +17,8 @@ spring:
eureka:
instance:
prefer-ip-address: true
lease-renewal-interval-in-seconds: 5
lease-expiration-duration-in-seconds: 20
client:
serviceUrl:
defaultZone: http://pig:gip6666@localhost:1025/eureka

View File

@ -33,6 +33,8 @@ spring:
eureka:
instance:
prefer-ip-address: true
lease-renewal-interval-in-seconds: 5
lease-expiration-duration-in-seconds: 20
client:
serviceUrl:
defaultZone: http://pig:gip6666@localhost:1025/eureka

View File

@ -18,6 +18,8 @@ spring:
eureka:
instance:
prefer-ip-address: true
lease-renewal-interval-in-seconds: 5
lease-expiration-duration-in-seconds: 20
client:
serviceUrl:
defaultZone: http://pig:gip6666@localhost:1025/eureka

View File

@ -17,6 +17,8 @@ spring:
eureka:
instance:
prefer-ip-address: true
lease-renewal-interval-in-seconds: 5
lease-expiration-duration-in-seconds: 20
client:
serviceUrl:
defaultZone: http://pig:gip6666@localhost:1025/eureka

View File

@ -18,6 +18,8 @@ spring:
eureka:
instance:
prefer-ip-address: true
lease-renewal-interval-in-seconds: 5
lease-expiration-duration-in-seconds: 20
client:
serviceUrl:
defaultZone: http://pig:gip6666@localhost:1025/eureka

View File

@ -18,6 +18,8 @@ spring:
eureka:
instance:
prefer-ip-address: true
lease-renewal-interval-in-seconds: 5
lease-expiration-duration-in-seconds: 20
client:
serviceUrl:
defaultZone: http://pig:gip6666@localhost:1025/eureka