24

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.

lcnicolau
  • 3,252
  • 4
  • 36
  • 53
Krish
  • 1,804
  • 7
  • 37
  • 65
  • 2
    Possible duplicate of [Understanding Spring Cloud Eureka Server self preservation and renew threshold](https://stackoverflow.com/questions/33921557/understanding-spring-cloud-eureka-server-self-preservation-and-renew-threshold) – Darren Forsythe Oct 31 '17 at 20:59
  • @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. – BendaThierry.com Aug 30 '22 at 21:04

4 Answers4

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.

Imranmadbar
  • 4,681
  • 3
  • 17
  • 30
  • This works and enabling the enableSelfPreservation doesn't show any warning for me. Thanks a lot. – Arefe Nov 02 '21 at 06:29
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
2

if you are using application.properties add

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


to your file
Godwin Tusime
  • 101
  • 1
  • 4
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.