-
Notifications
You must be signed in to change notification settings - Fork 408
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
Discovery does not recognise new instances or removed instances #45
Comments
I haven't tried your project yet, but the sample recognizes new and removed instances. |
So the issue is that |
Thanks @sigrist for the report and @marcingrzejszczak for the fix! |
Hi all,
I'm starting to use Zookeeper for service discovery with Spring Cloud. I created a simple application to demonstrate my issue. My client does not recognise when new instances are available or, even worse, when an instance is not available. The code for this example is https://github.com/sigrist/zookeeper-sandbox
I created a simple HTTP service that sends a Hello. I build a client service that uses this 'Hello Service'. If I started 2 or more services before the client, I can see that the load balancer works as expected, calling all the available instances. But if I shutdown one of the servers, the client still tries to connect to it, failing and showing the Default value for a failed request (using Netflix Hystrix).
If I started new server instances, the client does not recognise then, using only the available at boot time.
When I started new servers, I can see in the Client log that a new instance is available, but the server list is not updated:
Also, when I shutdown one server instance, a log in the client shows a new event:
My question is, how to update the server list in the client? Is there some configuration that I'm missing?
Thanks
Sigrist
The text was updated successfully, but these errors were encountered: