Skip to content
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

Intermittent error: Webclient using embedded Zuul, doesn't support dynamic refreshing of the microservices #42

Open
guruprasads7 opened this issue Apr 29, 2018 · 4 comments

Comments

@guruprasads7
Copy link
Collaborator

In the webclient module, where we are using embedded Zuul to provide proxy services and dynamic routing of requests based on the request url, doesn't support the dynamic refreshing of the config to reflect the new microservices.

It's hard to recreate the issue, coz it happens intermittently.

But the issue can be re-created the issue:
a) Start Eureka server instance
b) Start the Webclient microservice.
c) Start any other microservice (ex: chatbot)

In this case even though both the services are registered with Eureka, which can be found using
http://localhost:1111/eureka/apps

Zuul throws an exception, saying the "client microservice cannot be found"

It's worth investigating, why we face this issue.

@KHaack
Copy link
Contributor

KHaack commented Apr 29, 2018

Didnt get it. Is the dynamic refreshing not a main part of eureka?

@guruprasads7
Copy link
Collaborator Author

Basically, the issue is sometimes we have is, Zuul doesn't refresh the microservices which were started later to it.

In this case, if one tries to access the newly added microservices, a Zuul forwarding exception occurs message
Caused by: com.netflix.client.ClientException: Load balancer does not have available server for client: chatbot.

It needs a restart of the Webclient module which hosts the Zuul config, to reflect the new microservices and forward the requests to them.

@KHaack
Copy link
Contributor

KHaack commented Apr 29, 2018

Ok thanks :) but I think with a bit time zuul get a refresh list or?

@guruprasads7 guruprasads7 changed the title Intermediate error: Webclient using embedded Zuul, doesn't support dynamic refreshing of the microservices Intermittent error: Webclient using embedded Zuul, doesn't support dynamic refreshing of the microservices Apr 30, 2018
@prasanthhs
Copy link
Contributor

Should be changed as per Issue #50 and change to using Feign Client instead of Embedded Zuul.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants