Browse Source

添加eureka配置

tuonina 6 years ago
parent
commit
021c1f0d29
1 changed files with 8 additions and 1 deletions
  1. 8 1
      eureka-web/src/main/resources/application-dev.yml

+ 8 - 1
eureka-web/src/main/resources/application-dev.yml

@@ -10,11 +10,18 @@ eureka:
     hostname: localhost
     prefer-ip-address: true
     ip-address: 192.168.1.89
+    lease-renewal-interval-in-seconds: 15
+    lease-expiration-duration-in-seconds: 32
   client:
     register-with-eureka: true
     fetch-registry: false
     service-url:
-      defaultZone: http://${spring.security.user.password}:${spring.security.user.password}@${eureka.instance.ip-address}:${server.port}/eureka/
+      defaultZone: http://envir:envir@${eureka.instance.ip-address}:${server.port}/eureka/
+    registry-fetch-interval-seconds: 60
+    instance-info-replication-interval-seconds: 20
+    initial-instance-info-replication-interval-seconds: 45
+    eureka-server-read-timeout-seconds: 10
+    eureka-server-connect-timeout-seconds: 8
   server:
     enable-self-preservation: false
     eviction-interval-timer-in-ms: 60000