-
-
Notifications
You must be signed in to change notification settings - Fork 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
Services are not unregistering properly in docker container #3654
Comments
It depends on how the instance is killed, but probably if you do a |
@xetys / @jdubois : for your information, I have the same thing on my current project. So I tested this config on my registry: eureka:
server:
enable-self-preservation: false Here the log I have:
And the instance is cleared on the home page of the registry |
I had the same thing happening with my registry (see screenshot). It caused an issue where requests would fail because they are trying to request from a non-existing microservice. Following @pascalgrimaud's tip fixed my issue. Should this be included in the registry by default (or at least document)? |
OK I'm re-opening this, let's try this out, and fix it if needed. |
I am also trying self-preservation mode to false, but still got zombie applications in eureka...maybe I am still missing something? |
i tried to play with different attributes like enablePreservationMode, renewalThresholdUpdateIntervalMs, and evictionIntervalTimerInMs... after about 2 minutes after service kill my registry is recognizing the dead service....for frequent updates this is really uggly... |
- the evict task will unregister the services properly - see jhipster/generator-jhipster#3654
Closing this as I merged @pascalgrimaud's PR on the registry (note to self: I need to merge this in the master branch and do a new release of the Registry). |
Whenever you run a JHipster microservice application without docker container it is unregistering itself immediatly when is stopped, so it disappears in eureka server and is no longer offered for load balancer in zuul....
this is not happening when using docker. You can easily reproduce it by start a jhipster microservice setup with
docker-compose up -d
and then stop and start it several times. you will quickly get several dead instances inside of zuul....I am not sure, but this was working before....and it is still working without docker...
The text was updated successfully, but these errors were encountered: