小编mar*_*say的帖子

Elastic Beanstalk 应用程序部署上的 504s(用户 -> ELB -> Elastic Beanstalk mod_wsgi)

我有一个 Python Elastic Beanstalk 负载平衡应用程序。以下是用户请求进入 Elastic Beanstalk 应用程序的路径:

user -> Elastic Beanstalk ELB -> Elastic Beanstalk mod_wsgi

问题:

来自新应用程序版本user之后的前 ~2-4 个请求将从eb deployELB 生成 504 错误。

在这些 ~2-4 个生成 504 的请求之后,一切都很好!200 左右。

当 504 发生时,零请求会Elastic Beanstalk mod_wsgi根据/var/httpd/access_log. 在 ELB 决定重新开始工作后,我才看到 200 年代。

我尝试过但不起作用的事情:

  1. 我将Elastic Beanstalk ELB空闲超时增加到 300 秒
  2. 我按照此处的建议将Elastic Beanstalk mod_wsgiapacheKeepAliveTimeout增加到 300 秒:http : //docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/ts-elb-error-message.html

有人可能会说,“就和 504 一起生活吧!”

但是,实际问题是,在我的生产设置中,我CloudFlareuser和之间Elastic Beanstalk ELB …

mod-wsgi amazon-web-services amazon-elb elastic-beanstalk apache-2.4

5
推荐指数
1
解决办法
1402
查看次数