mirror of https://gitee.com/maxjhandsome/pig
修改开发环境eureka 心跳时间,方便开发调试
This commit is contained in:
parent
dd2c2fdcb6
commit
fcddc804cc
|
@ -18,6 +18,8 @@ spring:
|
||||||
eureka:
|
eureka:
|
||||||
instance:
|
instance:
|
||||||
prefer-ip-address: true
|
prefer-ip-address: true
|
||||||
|
lease-renewal-interval-in-seconds: 5
|
||||||
|
lease-expiration-duration-in-seconds: 20
|
||||||
client:
|
client:
|
||||||
serviceUrl:
|
serviceUrl:
|
||||||
defaultZone: http://pig:gip6666@localhost:1025/eureka
|
defaultZone: http://pig:gip6666@localhost:1025/eureka
|
||||||
|
|
|
@ -151,7 +151,7 @@
|
||||||
</logger>
|
</logger>
|
||||||
|
|
||||||
<!-- root级别 DEBUG -->
|
<!-- root级别 DEBUG -->
|
||||||
<root level="DEBUG">
|
<root level="INFO">
|
||||||
<!-- 控制台输出 -->
|
<!-- 控制台输出 -->
|
||||||
<appender-ref ref="STDOUT" />
|
<appender-ref ref="STDOUT" />
|
||||||
<!-- 文件输出 -->
|
<!-- 文件输出 -->
|
||||||
|
|
|
@ -17,9 +17,12 @@ spring:
|
||||||
eureka:
|
eureka:
|
||||||
instance:
|
instance:
|
||||||
prefer-ip-address: true
|
prefer-ip-address: true
|
||||||
|
lease-renewal-interval-in-seconds: 5
|
||||||
|
lease-expiration-duration-in-seconds: 20
|
||||||
client:
|
client:
|
||||||
serviceUrl:
|
serviceUrl:
|
||||||
defaultZone: http://pig:gip6666@localhost:1025/eureka
|
defaultZone: http://pig:gip6666@localhost:1025/eureka
|
||||||
|
|
||||||
---
|
---
|
||||||
spring:
|
spring:
|
||||||
profiles: prd
|
profiles: prd
|
||||||
|
|
|
@ -22,4 +22,4 @@ eureka:
|
||||||
hostname: localhost
|
hostname: localhost
|
||||||
server: #配置属性,但由于 Eureka 自我保护模式以及心跳周期长的原因,经常会遇到 Eureka Server 不剔除已关停的节点的问题
|
server: #配置属性,但由于 Eureka 自我保护模式以及心跳周期长的原因,经常会遇到 Eureka Server 不剔除已关停的节点的问题
|
||||||
enable-self-preservation: false
|
enable-self-preservation: false
|
||||||
eviction-interval-timer-in-ms: 100
|
eviction-interval-timer-in-ms: 5000
|
||||||
|
|
|
@ -17,6 +17,8 @@ spring:
|
||||||
eureka:
|
eureka:
|
||||||
instance:
|
instance:
|
||||||
prefer-ip-address: true
|
prefer-ip-address: true
|
||||||
|
lease-renewal-interval-in-seconds: 5
|
||||||
|
lease-expiration-duration-in-seconds: 20
|
||||||
client:
|
client:
|
||||||
serviceUrl:
|
serviceUrl:
|
||||||
defaultZone: http://pig:gip6666@localhost:1025/eureka
|
defaultZone: http://pig:gip6666@localhost:1025/eureka
|
||||||
|
|
|
@ -17,6 +17,8 @@ spring:
|
||||||
eureka:
|
eureka:
|
||||||
instance:
|
instance:
|
||||||
prefer-ip-address: true
|
prefer-ip-address: true
|
||||||
|
lease-renewal-interval-in-seconds: 5
|
||||||
|
lease-expiration-duration-in-seconds: 20
|
||||||
client:
|
client:
|
||||||
serviceUrl:
|
serviceUrl:
|
||||||
defaultZone: http://pig:gip6666@localhost:1025/eureka
|
defaultZone: http://pig:gip6666@localhost:1025/eureka
|
||||||
|
|
|
@ -33,6 +33,8 @@ spring:
|
||||||
eureka:
|
eureka:
|
||||||
instance:
|
instance:
|
||||||
prefer-ip-address: true
|
prefer-ip-address: true
|
||||||
|
lease-renewal-interval-in-seconds: 5
|
||||||
|
lease-expiration-duration-in-seconds: 20
|
||||||
client:
|
client:
|
||||||
serviceUrl:
|
serviceUrl:
|
||||||
defaultZone: http://pig:gip6666@localhost:1025/eureka
|
defaultZone: http://pig:gip6666@localhost:1025/eureka
|
||||||
|
|
|
@ -18,6 +18,8 @@ spring:
|
||||||
eureka:
|
eureka:
|
||||||
instance:
|
instance:
|
||||||
prefer-ip-address: true
|
prefer-ip-address: true
|
||||||
|
lease-renewal-interval-in-seconds: 5
|
||||||
|
lease-expiration-duration-in-seconds: 20
|
||||||
client:
|
client:
|
||||||
serviceUrl:
|
serviceUrl:
|
||||||
defaultZone: http://pig:gip6666@localhost:1025/eureka
|
defaultZone: http://pig:gip6666@localhost:1025/eureka
|
||||||
|
|
|
@ -17,6 +17,8 @@ spring:
|
||||||
eureka:
|
eureka:
|
||||||
instance:
|
instance:
|
||||||
prefer-ip-address: true
|
prefer-ip-address: true
|
||||||
|
lease-renewal-interval-in-seconds: 5
|
||||||
|
lease-expiration-duration-in-seconds: 20
|
||||||
client:
|
client:
|
||||||
serviceUrl:
|
serviceUrl:
|
||||||
defaultZone: http://pig:gip6666@localhost:1025/eureka
|
defaultZone: http://pig:gip6666@localhost:1025/eureka
|
||||||
|
|
|
@ -18,6 +18,8 @@ spring:
|
||||||
eureka:
|
eureka:
|
||||||
instance:
|
instance:
|
||||||
prefer-ip-address: true
|
prefer-ip-address: true
|
||||||
|
lease-renewal-interval-in-seconds: 5
|
||||||
|
lease-expiration-duration-in-seconds: 20
|
||||||
client:
|
client:
|
||||||
serviceUrl:
|
serviceUrl:
|
||||||
defaultZone: http://pig:gip6666@localhost:1025/eureka
|
defaultZone: http://pig:gip6666@localhost:1025/eureka
|
||||||
|
|
|
@ -18,6 +18,8 @@ spring:
|
||||||
eureka:
|
eureka:
|
||||||
instance:
|
instance:
|
||||||
prefer-ip-address: true
|
prefer-ip-address: true
|
||||||
|
lease-renewal-interval-in-seconds: 5
|
||||||
|
lease-expiration-duration-in-seconds: 20
|
||||||
client:
|
client:
|
||||||
serviceUrl:
|
serviceUrl:
|
||||||
defaultZone: http://pig:gip6666@localhost:1025/eureka
|
defaultZone: http://pig:gip6666@localhost:1025/eureka
|
||||||
|
|
Loading…
Reference in New Issue