504(网关超时)在AWS上 [英] 504 (Gateway Timeout) on AWS

查看:1245
本文介绍了504(网关超时)在AWS上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我的web应用程序在PHP的AWS EC2实例运行,我做一个Ajax调用大约需要5-10 mintes,我看到了谷歌浏览器的Web控制台,我得到这个 504(网关超时),我怎么能增加该值,是关系到apache的? 谢谢

I have my web app running on AWS EC2 instance in PHP and I make an ajax call that takes about 5-10 mintes, I see the web console in Google Chrome and I get this 504 (Gateway Timeout) ,How I can increase the value of this, is that related to apache? Thanks

推荐答案

ELB默认超时60秒;没有办法,我知道的,延长此限制,尽管的此页面表明,它的东西,亚马逊的支持能为你做(和也表明了解决该问题的方法):

ELB by default times out at 60 seconds; there is no way I know of to extend this limit, although this page suggests that it's something Amazon Support can do for you (and also suggests a method of working around the problem):

6点)亚马逊ELB超时60秒(保持空闲)

Point 6) Amazon ELB timeouts at 60 seconds (kept idle)

亚马逊ELB   当前超时持续套接字连接@ 60数秒如果是   一直处于闲置状态。这种条件将是用例一问题,这   产生大量的文件(PDF,报告等)的后端EC2,它们发送的   应对整个生成过程中背部,保持连接空闲   处理。为了避免这种情况,你就得送点东西上的插座   每40秒左右,以保持连接活跃在亚马逊ELB。   注:我听说我们可以解释的情况下延长后该值   AWS支持团队。

Amazon ELB currently timeouts persistent socket connections @ 60 seconds if it is kept idle. This condition will be a problem for use cases which generates large files (PDF, reports etc) at backend EC2, sends them as response back and keeps connection idle during entire generation process. To avoid this you'll have to send something on the socket every 40 or so seconds to keep the connection active in Amazon ELB. Note: I heard we can extend this value after explaining the case to AWS support team.

编辑:正如评论者低于所指出的那样,由于<一个href="http://aws.amazon.com/about-aws/whats-new/2014/07/24/elastic-load-balancing-now-supports-idle-timeout-configuration/"相对=nofollow> 2014年7月24日这是您的AWS控制台进行配置。

As commenters below have pointed out, as of July 24th, 2014 this is configurable in your AWS console.

这篇关于504(网关超时)在AWS上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆