Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 853
Krish Avatar asked Oct 31 '17 15:10

Krish


People also ask

Are there multiple Eureka instances?

Generally, there will be multiple Eureka servers running so that to make it highly available. This is actually running multiple instances that intercommunicate with each other and what they do is they copy the replicate state of the registered services between them.

What is the default port on which Eureka Server runs?

Here we're configuring an application port; the default one for Eureka servers is 8761.


2 Answers

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.

like image 146
Imranmadbar Avatar answered Sep 16 '22 17:09

Imranmadbar


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
like image 22
Khairul Bashar Lemon Avatar answered Sep 20 '22 17:09

Khairul Bashar Lemon