Reputation: 1633
I'm seeing a 504 response for a long request using the Spring Cloud Zuul gateway pattern. The timeout occurs exactly 1 minute after the request was issued.
I've tried the following to no avail:
zuul:
ribbon:
ConnectTimeout: 10000000
ReadTimeout: 10000000
and:
hystrix:
command:
default:
execution:
isolation:
thread:
timeoutInMilliseconds: 10000000
and
hystrix:
command:
default:
execution:
timeout:
enabled: false
None of these prevents the gateway timeout after a minute.
Upvotes: 5
Views: 8876
Reputation: 1633
It turned out to be the Idle timeout value of the AWS Elastic Load Balancer. I increased the idle timeout to 3 minutes and the problem went away.
Upvotes: 5
Reputation: 427
Try this differents configurations :
# Disable Hystrix timeout globally (for all services)
#hystrix.command.default.execution.timeout.enabled: false
# Disable Hystrix timeout for a single service
#hystrix.command.<serviceName>.execution.timeout.enabled: false
# Increase the Hystrix timeout to 60s (globally)
#hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds: 60000
# Increase the Hystrix timeout to 60s (per service)
#hystrix.command.<serviceName>.execution.isolation.thread.timeoutInMilliseconds: 60000
Upvotes: 1