eureka 存在一些机制
1. 服务续约问题
2. 自我保护机制
问题
1.EMERGENCY! EUREKA MAY BE INCORRECTLY CLAIMING INSTANCES ARE UP WHEN THEY'RE NOT. RENEWALS ARE LESSER THAN THRESHOLD AND HENCE THE INSTANCES ARE NOT BEING EXPIRED JUST TO BE SAFE.
2,服务不存了,但不被踢除
[img]http://dl2.iteye.com/upload/attachment/0130/0067/a1f1857f-8000-3bf1-b8c8-2ea363bfa119.png[/img]
[img]http://dl2.iteye.com/upload/attachment/0130/0065/0bd59f8c-71e8-355b-8d2b-bb6541913b42.png[/img]
eureka的服务续约
心跳是由服务方(instance)向注册中心eureka发送的
eureka只是在固定的时间段(evictionIntervalTimerInMs)内检查, 清除服务而已, 而且参数也是在instance方设定的
服务A leaseExpirationDurationInSeconds:5, 关掉后约10秒时eureka下架
服务B leaseExpirationDurationInSeconds:8, 关掉后约19秒时eureka下架
1. 服务续约问题
2. 自我保护机制
问题
1.EMERGENCY! EUREKA MAY BE INCORRECTLY CLAIMING INSTANCES ARE UP WHEN THEY'RE NOT. RENEWALS ARE LESSER THAN THRESHOLD AND HENCE THE INSTANCES ARE NOT BEING EXPIRED JUST TO BE SAFE.
2,服务不存了,但不被踢除
[img]http://dl2.iteye.com/upload/attachment/0130/0067/a1f1857f-8000-3bf1-b8c8-2ea363bfa119.png[/img]
[img]http://dl2.iteye.com/upload/attachment/0130/0065/0bd59f8c-71e8-355b-8d2b-bb6541913b42.png[/img]
eureka的服务续约
心跳是由服务方(instance)向注册中心eureka发送的
eureka只是在固定的时间段(evictionIntervalTimerInMs)内检查, 清除服务而已, 而且参数也是在instance方设定的
服务A leaseExpirationDurationInSeconds:5, 关掉后约10秒时eureka下架
服务B leaseExpirationDurationInSeconds:8, 关掉后约19秒时eureka下架