淘先锋技术网

首页 1 2 3 4 5 6 7

服务端:

eureka:
  server:
    #剔除失效服务间隔,默认60000毫秒,即60秒
    eviction-interval-timer-in-ms: 1000

客户端:

eureka:
  instance:
    #心跳,默认30s
    lease-renewal-interval-in-seconds: 1
    #定义死亡,默认90s
    lease-expiration-duration-in-seconds: 3

测试数据,具体数组根据项目适当调整