spring-cloud-netflix icon indicating copy to clipboard operation
spring-cloud-netflix copied to clipboard

Eureka Client Health status update to Eureka

Open sureshkrishnamoorthy opened this issue 9 years ago • 2 comments

We are using Spring cloud netflix version 1.2.6 (Camden SR6) and Spring boot version 1.4.5 in our environment.

When the service is closed abruptly (VM crash),

  • with the default eureka client settings, service health status is always displayed as UP in eureka until the lease expiration time and after the the instance is removed from registry
  • when we update the eureka client property eureka.client.healthcheck.enabled=true, we could not see any difference

Please let us know how to update the down status to eureka when the service is not available

sureshkrishnamoorthy avatar Apr 20 '17 16:04 sureshkrishnamoorthy

Sounds like Eureka working as designed. Eureka waits up to 3 heartbeat cycles before removing an instance in case of network hiccups.

eureka.client.healthcheck.enabled=true only works if the client is up and sends a different status with the heartbeat. Eureka doesn't ping instances.

spencergibb avatar Apr 20 '17 18:04 spencergibb

@sureshkrishnamoorthy eureka.instance.leaseExpirationDurationInSeconds is the property that you need to tune if you want Eureka to clean away the dead instances faster. The default value is 90.

saiyedzaidi avatar Apr 25 '17 16:04 saiyedzaidi