How long does Eureka remove instance from its metadata if some abruptly kill the instance
Eureka Server yml below:
eureka:
server:
enableSelfPreservation: false
Eureka Client yml below:
eureka:
instance:
leaseRenewalIntervalInSeconds: 1
leaseExpirationDurationInSeconds: 2
Now it take about 1 minutes to cancel an instance from Eureka.
Any interval property i can change to reduce the 1 minute timeframe.
2016-08-11 10:52:49.157 INFO 19364 --- [io-30020-exec-2] c.n.e.registry.AbstractInstanceRegistry : Registered instance EZPRICING-API/EPLAP020.Ezypay.local:ezpricing-api:8083 with status UP (replication=false)
2016-08-11 10:53:51.052 INFO 19364 --- [a-EvictionTimer] c.n.e.registry.AbstractInstanceRegistry : Evicting 1 items (expired=1, evictionLimit=1)
2016-08-11 10:53:51.052 WARN 19364 --- [a-EvictionTimer] c.n.e.registry.AbstractInstanceRegistry : DS: Registry: expired lease for EZPRICING-API/EPLAP020.Ezypay.local:ezpricing-api:8083
2016-08-11 10:53:51.053 INFO 19364 --- [a-EvictionTimer] c.n.e.registry.AbstractInstanceRegistry : Cancelled instance EZPRICING-API/EPLAP020.Ezypay.local:ezpricing-api:8083 (replication=false)
probably eureka.server.evictionIntervalTimerInMs. See https://github.com/Netflix/eureka/blob/master/eureka-core/src/main/java/com/netflix/eureka/EurekaServerConfig.java#L255
It defaults to 1 minute.
Thanks.
I shall give a try.
@spencergibb
eureka:
instance:
lease-renewal-interval-inSeconds: 5
lease-expiration-duration-in-seconds: 15
server:
enable-self-preservation: false
eviction-interval-timer-in-ms: 7000
modify evictionIntervalTimerInMs not work.
c.n.e.r.AbstractInstanceRegistry - DS: Registry: lease doesn't exist
c.n.e.resources.InstanceResource - Not Found (Renew)
c.n.e.r.AbstractInstanceRegistry - DS: Registry: expired lease for
Most helpful comment
probably
eureka.server.evictionIntervalTimerInMs. See https://github.com/Netflix/eureka/blob/master/eureka-core/src/main/java/com/netflix/eureka/EurekaServerConfig.java#L255It defaults to 1 minute.