-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lease expiration on standalone Eureka server with self-presenvation enabled is broken #4101
Comments
To add on top of that, looks like |
Hello @ViliusS , please provide a minimal, complete, verifiable example that reproduces the issue. |
Here you go Just run this Maven project which should start Eureka server in standalone mode. After that, connect any number of Eureka clients to it. In the logs you will always see: This doesn't allow leases to expire, unless you disable self preservation mode. |
For |
I have changed the value referenced above back to |
However, after I've run a client against the updated sample, when |
So, maybe Btw, I don't understand why |
It looks like lease expiration on standalone Eureka server with self-presenvation enabled is completely broken. I have the following configuration:
If I start completely empty server with this configuration it says:
I tracked it down to
defaultOpenForTrafficCount
which by default is set to 1, changed toeureka.instance.registry.defaultOpenForTrafficCount=0
. Now the server starts with:Issue however not solved because even if I add dozen of eureka clients the threshold never changes even when is actually recalculated. I get
c.n.e.r.PeerAwareInstanceRegistryImpl : Current renewal threshold is : 0
in the logs every minute.Hence, lease expiration never kicks in unless I completely disable self-preservation mode.
The text was updated successfully, but these errors were encountered: