How to eliminate the "Eureka may be incorrectly claiming instances are up when they're not" warning on Eureka Dashboard?
Asked Answered
T

5

26

How to eliminate the following message on Eureka server dashboard? Will it cause any issue to my services?

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.

Eureka dashboard

Thanks.

Testify answered 31/10, 2017 at 15:21 Comment(2)
Possible duplicate of Understanding Spring Cloud Eureka Server self preservation and renew thresholdAssoil
@DarrenForsythe Darren, please update or remove your first in your first comment, because it is not anymore what it pretends to be, at least nowadays.Katanga
A
16

Sample Disable this warning: add this property on application.properties file

 eureka.renewalPercentThreshold=0.85

OR

 eureka.server.enableSelfPreservation=false

But enableSelfPreservation also shows another warning message that you disable it.

Antiphonary answered 21/5, 2020 at 4:33 Comment(1)
This works and enabling the enableSelfPreservation doesn't show any warning for me. Thanks a lot.Rene
C
5

On your EurekaServer configuration properties file, change the value of wait-time-in-ms-when-sync-empty to zero or delete this line, cause default value is zero.

eureka:
  server:
    wait-time-in-ms-when-sync-empty: 0
Condensate answered 21/8, 2020 at 6:1 Comment(0)
E
3

if you are using application.properties add

eureka.instance.lease-renewal-interval-in-seconds=0


to your file
Eyestrain answered 1/6, 2022 at 2:32 Comment(0)
E
0

I had this same error. make sure you have

<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId> </dependency>

in your client pom. NOT the server dependency.

Ellita answered 15/1, 2023 at 19:43 Comment(0)
D
0

I was facing same error for service registry. By adding

implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'

in build.gradle was able to resolve the issue.

Duodecimo answered 19/4 at 3:29 Comment(1)
As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.Wilhoit

© 2022 - 2024 — McMap. All rights reserved.