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

Zuul Exception: Use instance of closed #2194

Closed
kenttanl opened this issue Aug 10, 2017 · 3 comments
Closed

Zuul Exception: Use instance of closed #2194

kenttanl opened this issue Aug 10, 2017 · 3 comments

Comments

@kenttanl
Copy link

In #2179, 'WCMIS208' instance is closed, but Eureka is in "self-preservation mode", so it was not removed, but now, occasionally there will be such an exception:

...
org.apache.http.conn.HttpHostConnectException: Connect to WCMIS208:10015 [WCMIS208/10.16.72.21] failed: Connection refused
...

I think Zuul should skip instance of has been closed , or try again that until the encounter the healthy instance,so , Is there such the function? thank you

@ryanjbaxter
Copy link
Contributor

I stil dont know what you mean by "closed". Zuul can be configured to retry failed requests http://cloud.spring.io/spring-cloud-static/Dalston.SR2/#retrying-failed-requests

@kenttanl
Copy link
Author

Sorry my English, "closed" that mean is "stopped". I will try to do it like this, and now I restarted the gateway, that to solved this problem.

I will try to add the config:

client.ribbon.MaxAutoRetries
clientName.ribbon.retryableStatusCodes

to see if will encounter this problem again.

Thank you very much, and sorry my English again

@ryanjbaxter
Copy link
Contributor

No problem :)

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

2 participants