From bd29e94bb2343ff9483d3f304199fe7fcbb05ec4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B7=E5=86=B7?= Date: Sun, 25 Mar 2018 21:57:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=BC=80=E5=8F=91eureka?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pig-auth/src/main/resources/bootstrap.yml | 1 + pig-config/src/main/resources/application.yml | 1 + pig-eureka/src/main/resources/application.yml | 2 +- pig-gateway/src/main/resources/bootstrap.yml | 1 + pig-modules/pig-daemon-service/src/main/resources/bootstrap.yml | 1 + pig-modules/pig-mc-service/src/main/resources/bootstrap.yml | 1 + pig-modules/pig-upms-service/src/main/resources/bootstrap.yml | 1 + pig-visual/pig-monitor/src/main/resources/bootstrap.yml | 1 + pig-visual/pig-zipkin-db/src/main/resources/bootstrap.yml | 1 + pig-visual/pig-zipkin-elk/src/main/resources/bootstrap.yml | 1 + 10 files changed, 10 insertions(+), 1 deletion(-) diff --git a/pig-auth/src/main/resources/bootstrap.yml b/pig-auth/src/main/resources/bootstrap.yml index f801ec1d..5ebd1749 100644 --- a/pig-auth/src/main/resources/bootstrap.yml +++ b/pig-auth/src/main/resources/bootstrap.yml @@ -23,6 +23,7 @@ eureka: client: serviceUrl: defaultZone: http://pig:gip6666@localhost:1025/eureka + registry-fetch-interval-seconds: 10 --- spring: diff --git a/pig-config/src/main/resources/application.yml b/pig-config/src/main/resources/application.yml index 34cd7be5..6604f9a1 100644 --- a/pig-config/src/main/resources/application.yml +++ b/pig-config/src/main/resources/application.yml @@ -22,6 +22,7 @@ eureka: client: serviceUrl: defaultZone: http://pig:gip6666@localhost:1025/eureka + registry-fetch-interval-seconds: 10 --- spring: diff --git a/pig-eureka/src/main/resources/application.yml b/pig-eureka/src/main/resources/application.yml index 56d0322f..699d1ec9 100644 --- a/pig-eureka/src/main/resources/application.yml +++ b/pig-eureka/src/main/resources/application.yml @@ -17,7 +17,7 @@ eureka: fetch-registry: false register-with-eureka: false serviceUrl: - defaultZone: http://${eureka.instance.hostname}:${server.port}/eureka/ + defaultZone: http://${eureka.instance.hostname}:${server.port}/eureka/ instance: hostname: localhost server: #配置属性,但由于 Eureka 自我保护模式以及心跳周期长的原因,经常会遇到 Eureka Server 不剔除已关停的节点的问题 diff --git a/pig-gateway/src/main/resources/bootstrap.yml b/pig-gateway/src/main/resources/bootstrap.yml index 23a5c85c..e95a9c4d 100644 --- a/pig-gateway/src/main/resources/bootstrap.yml +++ b/pig-gateway/src/main/resources/bootstrap.yml @@ -22,6 +22,7 @@ eureka: client: serviceUrl: defaultZone: http://pig:gip6666@localhost:1025/eureka + registry-fetch-interval-seconds: 10 #认证服务器地址 security: auth: diff --git a/pig-modules/pig-daemon-service/src/main/resources/bootstrap.yml b/pig-modules/pig-daemon-service/src/main/resources/bootstrap.yml index 7fa4fda2..9ace5d8d 100644 --- a/pig-modules/pig-daemon-service/src/main/resources/bootstrap.yml +++ b/pig-modules/pig-daemon-service/src/main/resources/bootstrap.yml @@ -22,6 +22,7 @@ eureka: client: serviceUrl: defaultZone: http://pig:gip6666@localhost:1025/eureka + registry-fetch-interval-seconds: 10 --- spring: 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 176e1456..44265551 100644 --- a/pig-modules/pig-mc-service/src/main/resources/bootstrap.yml +++ b/pig-modules/pig-mc-service/src/main/resources/bootstrap.yml @@ -22,6 +22,7 @@ eureka: client: serviceUrl: defaultZone: http://pig:gip6666@localhost:1025/eureka + registry-fetch-interval-seconds: 10 --- spring: 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 5fe3c34a..12f22eb3 100644 --- a/pig-modules/pig-upms-service/src/main/resources/bootstrap.yml +++ b/pig-modules/pig-upms-service/src/main/resources/bootstrap.yml @@ -23,6 +23,7 @@ eureka: client: serviceUrl: defaultZone: http://pig:gip6666@localhost:1025/eureka + registry-fetch-interval-seconds: 10 --- spring: diff --git a/pig-visual/pig-monitor/src/main/resources/bootstrap.yml b/pig-visual/pig-monitor/src/main/resources/bootstrap.yml index d1a5e57b..01dd7234 100644 --- a/pig-visual/pig-monitor/src/main/resources/bootstrap.yml +++ b/pig-visual/pig-monitor/src/main/resources/bootstrap.yml @@ -22,6 +22,7 @@ eureka: client: serviceUrl: defaultZone: http://pig:gip6666@localhost:1025/eureka + registry-fetch-interval-seconds: 10 --- spring: 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 9537b471..610d3e2f 100644 --- a/pig-visual/pig-zipkin-db/src/main/resources/bootstrap.yml +++ b/pig-visual/pig-zipkin-db/src/main/resources/bootstrap.yml @@ -23,6 +23,7 @@ eureka: client: serviceUrl: defaultZone: http://pig:gip6666@localhost:1025/eureka + registry-fetch-interval-seconds: 10 --- spring: 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 8136d3ff..2fbf8942 100644 --- a/pig-visual/pig-zipkin-elk/src/main/resources/bootstrap.yml +++ b/pig-visual/pig-zipkin-elk/src/main/resources/bootstrap.yml @@ -23,6 +23,7 @@ eureka: client: serviceUrl: defaultZone: http://pig:gip6666@localhost:1025/eureka + registry-fetch-interval-seconds: 10 --- spring: