First request through Zuul/Euruka will always timeout. Subsequent requests then behave as expected (no timeouts).
See original GitHub issueHi all,
Hoping to receive some advice about a timeout issue we’re repeatedly experiencing.
We have a number of microservices that are integrated with Eureka and Zuul. Whenever we start up our services (including the Eureka and Zuul services), the first request that hits Zuul will always timeout. This timeout will occur regardless of how long we wait (i.e. the timeout will occur even if we wait 15 mins after starting up). After this first request, Zuul/Eureka then seem to wake up and all subsequent requests will work as expected. Has anyone else experienced this?
This file contains the full Zuul stack trace we experience on the first request. The pertinent parts of the stack trace are also pasted below:
com.netflix.zuul.exception.ZuulException: Forwarding error
at org.springframework.cloud.netflix.zuul.filters.route.RibbonRoutingFilter.handleException(RibbonRoutingFilter.java:170)
at org.springframework.cloud.netflix.zuul.filters.route.RibbonRoutingFilter.forward(RibbonRoutingFilter.java:145)
....
Caused by: com.netflix.hystrix.exception.HystrixRuntimeException: my-service-id timed-out and no fallback available.
at com.netflix.hystrix.AbstractCommand$22.call(AbstractCommand.java:805)
at com.netflix.hystrix.AbstractCommand$22.call(AbstractCommand.java:790)
....
Caused by: java.util.concurrent.TimeoutException: null
at com.netflix.hystrix.AbstractCommand.handleTimeoutViaFallback(AbstractCommand.java:980)
at com.netflix.hystrix.AbstractCommand.access$500(AbstractCommand.java:59)
at com.netflix.hystrix.AbstractCommand$12.call(AbstractCommand.java:595)
at com.netflix.hystrix.AbstractCommand$12.call(AbstractCommand.java:587)
at rx.internal.operators.OperatorOnErrorResumeNextViaFunction$4.onError(OperatorOnErrorResumeNextViaFunction.java:140)
Thank you.
Issue Analytics
- State:
- Created 7 years ago
- Comments:15 (7 by maintainers)
Top Results From Across the Web
Receiving "The request timed out." when using NSURLSession
Hi all,. I'm facing a very strange problem in my application. In particular, using the application when a request receives a timeout message, ......
Read more >Why does WebRequest timeout always on the first request, but ...
You're not disposing of the web response, so the connection pool for the second request is going to time out waiting to get...
Read more >Request Timeout | Heroku Dev Center
Subsequent requests may then be routed to the same process which will be unable to respond (depending on the concurrency behavior of the ......
Read more >Common Timeouts effecting Web Services, HTTP and SOAP ...
Resolving The Problem. Client Timers, connectionIdleTimeout and syncTimeout: HttpOutboundC 1 WSWS3228E: Error: Exception: java.io.
Read more >Taking a Timeout from Poor Performance | APIs You Won't Hate
In a system-oriented architecture, it is crucial to communicate with other systems, sometimes synchronously. Broker patterns, proxies, etc., ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@nestramix @ryanjbaxter As he says his problem is only on the first hit, ribbon eager loading should help -
ribbon.eager-load.enabled = true
The clients