jidj 6 years ago
parent
commit
7b6fa4a4f8
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/main/resources/bootstrap.yml

+ 4 - 0
src/main/resources/bootstrap.yml

@@ -10,6 +10,10 @@ eureka:
10
       defaultZone: http://eureka-depot-sx:9001/eureka/
10
       defaultZone: http://eureka-depot-sx:9001/eureka/
11
   instance:
11
   instance:
12
     prefer-ip-address: true
12
     prefer-ip-address: true
13
+    # 每隔10s发送一次心跳(默认30s)
14
+    lease-renewal-interval-in-seconds: 10
15
+    # 告知服务端30秒还未收到心跳的话,就将该服务移除列表(默认90s)
16
+    lease-expiration-duration-in-seconds: 30
13
 
17
 
14
 spring:
18
 spring:
15
   application:
19
   application: