diff --git a/pig-auth/src/main/resources/bootstrap.yml b/pig-auth/src/main/resources/bootstrap.yml index d9111f47..cdfd68b5 100644 --- a/pig-auth/src/main/resources/bootstrap.yml +++ b/pig-auth/src/main/resources/bootstrap.yml @@ -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 diff --git a/pig-auth/src/main/resources/logback.xml b/pig-auth/src/main/resources/logback.xml index 4489a04a..1231db77 100644 --- a/pig-auth/src/main/resources/logback.xml +++ b/pig-auth/src/main/resources/logback.xml @@ -151,7 +151,7 @@ - + diff --git a/pig-config/src/main/resources/application.yml b/pig-config/src/main/resources/application.yml index b6f4fe88..00646fee 100644 --- a/pig-config/src/main/resources/application.yml +++ b/pig-config/src/main/resources/application.yml @@ -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 diff --git a/pig-eureka/src/main/resources/application.yml b/pig-eureka/src/main/resources/application.yml index 6b160a76..56d0322f 100644 --- a/pig-eureka/src/main/resources/application.yml +++ b/pig-eureka/src/main/resources/application.yml @@ -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 diff --git a/pig-gateway/src/main/resources/bootstrap.yml b/pig-gateway/src/main/resources/bootstrap.yml index efa35609..11f1ee96 100644 --- a/pig-gateway/src/main/resources/bootstrap.yml +++ b/pig-gateway/src/main/resources/bootstrap.yml @@ -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 diff --git a/pig-modules/pig-mc-service/src/main/resources/bootstrap.yml b/pig-modules/pig-mc-service/src/main/resources/bootstrap.yml index b46dee61..01bd0979 100644 --- a/pig-modules/pig-mc-service/src/main/resources/bootstrap.yml +++ b/pig-modules/pig-mc-service/src/main/resources/bootstrap.yml @@ -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 diff --git a/pig-modules/pig-sso-client-demo/src/main/resources/application.yml b/pig-modules/pig-sso-client-demo/src/main/resources/application.yml index fa849942..00157234 100644 --- a/pig-modules/pig-sso-client-demo/src/main/resources/application.yml +++ b/pig-modules/pig-sso-client-demo/src/main/resources/application.yml @@ -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 diff --git a/pig-modules/pig-upms-service/src/main/resources/bootstrap.yml b/pig-modules/pig-upms-service/src/main/resources/bootstrap.yml index 1ae7e9f8..21b83ec7 100644 --- a/pig-modules/pig-upms-service/src/main/resources/bootstrap.yml +++ b/pig-modules/pig-upms-service/src/main/resources/bootstrap.yml @@ -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 diff --git a/pig-visual/pig-monitor/src/main/resources/bootstrap.yml b/pig-visual/pig-monitor/src/main/resources/bootstrap.yml index 82a5548c..e3150d55 100644 --- a/pig-visual/pig-monitor/src/main/resources/bootstrap.yml +++ b/pig-visual/pig-monitor/src/main/resources/bootstrap.yml @@ -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 diff --git a/pig-visual/pig-zipkin-db/src/main/resources/bootstrap.yml b/pig-visual/pig-zipkin-db/src/main/resources/bootstrap.yml index 1ea71ce6..7d448d9e 100644 --- a/pig-visual/pig-zipkin-db/src/main/resources/bootstrap.yml +++ b/pig-visual/pig-zipkin-db/src/main/resources/bootstrap.yml @@ -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 diff --git a/pig-visual/pig-zipkin-elk/src/main/resources/bootstrap.yml b/pig-visual/pig-zipkin-elk/src/main/resources/bootstrap.yml index 4764a451..f8b9cb47 100644 --- a/pig-visual/pig-zipkin-elk/src/main/resources/bootstrap.yml +++ b/pig-visual/pig-zipkin-elk/src/main/resources/bootstrap.yml @@ -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