I am testing a spring-cloud eureka server and client. I have a simple question about the default configuration (server & client).
On the server side, the renew threshold is equal to 3. On the client side, it sends a heartbeat every 30 seconds (a maximum of 2 per minute).
When I look at the registry dashboard, when the waitTimeInMswhenSyncEmpty
is over, I see the following warning message:
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
When I look at the code, the test getNumOfRenewsInLastMin() <= numberOfRenewsPerMinThreshold
is always true (2 <= 3)
Why is the default configuration, it seems weird because it constantly generates a warning!
If there is anyone who can give me an explanation. I think I've missed something…