Reputation: 57
I am using Zuul API gateway wihout any service discovery, by specifying URL routes, and I am getting always the following read time out exception because my Request needs a large time to get a response. How can i change the read time out property in application.yml ?
"timestamp": 1578652198489,
"status": 500,
"error": "Internal Server Error",
"exception": "com.netflix.zuul.exception.ZuulException",
"message": "Read timed out",
"trace": "com.netflix.zuul.exception.ZuulException: Read timed out
Upvotes: 2
Views: 4369
Reputation: 1698
From the springboot and Zuul documentation (https://cloud.spring.io/spring-cloud-netflix/multi/multi__router_and_filter_zuul.html#_zuul_timeouts)
If you have configured Zuul routes by specifying URLs, you need to use zuul.host.connect-timeout-millis and zuul.host.socket-timeout-millis.
In your .yml file:
zuul:
host:
connect-timeout-millis: 90000
socket-timeout-millis: 90000
Upvotes: 1