Spring Zuul - Gateway Timeout

user1432403 picture user1432403 · May 13, 2016 · Viewed 7.4k times · Source

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.

Answer

user1432403 picture user1432403 · May 22, 2016

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.