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.
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.