Open viktoralfa19 opened 5 months ago
Have you set the eureka.instance.initial-status configuration and what is its value?
In the client this is configuration:
Hello @viktoralfa19, thanks for reporting the issue. Please learn how to properly format code and logs. Please provide a minimal, complete, verifiable example that reproduces the issue - in the form of a link to a separate repo with an executable app and steps to perform in order to recreate the issue.
Please, we have the following problem in production: For some reason (we assume network problems), the client sends the status of the instance to be updated as
DOWN
in the Service Discovery, but when everything normalizes the network, the client begins to send theHEARTBEAT
normally with the statusUP
, but the instance in Eureka is still in theDOWN
state, it does not change, which causes the applications that consume that service or client to receive a404
error in their requests.In summary, the instance on the Eureka Service Discovery server marks the client as
DOWN
, but does not change its status back toUP
, to make its requests available to whoever needs them.Context(Important production values have been moved to a local environment):
Clients are microservices developed in .Net 6
The current configuration of the services are these:
In program class we load the eureka client like this:
hostBuilder.AddDiscoveryClient()
We have a custom
HelthCheck
in each client with this path /healthThe Eureka server is mounted on a Spring Boot application.
This is your configuration:
We use the packages: spring-boot-starter-parent - version: 3.2.4
spring-cloud-starter-netflix-eureka-server - version: 4.1.1
And the entry point is simply this:
Something similar to the error has been replicated locally: We raise our Eureka server, and our clients:
It is normally recorded:
But then we mark the instance as DOWN:
And when everything is OK, the heartbeats are sent normally and received
OK
, but the service status is stillDOWN
We can even replicate all of this with Postman, if you can guide us on what we are doing wrong or what we need to configure, we would greatly appreciate it.