我有一个 Python Elastic Beanstalk 负载平衡应用程序。以下是用户请求进入 Elastic Beanstalk 应用程序的路径:
user -> Elastic Beanstalk ELB -> Elastic Beanstalk mod_wsgi
问题:
来自新应用程序版本user
之后的前 ~2-4 个请求将从eb deploy
ELB 生成 504 错误。
在这些 ~2-4 个生成 504 的请求之后,一切都很好!200 左右。
当 504 发生时,零请求会Elastic Beanstalk mod_wsgi
根据/var/httpd/access_log
. 在 ELB 决定重新开始工作后,我才看到 200 年代。
我尝试过但不起作用的事情:
Elastic Beanstalk ELB
空闲超时增加到 300 秒Elastic Beanstalk mod_wsgi
apacheKeepAliveTimeout
增加到 300 秒:http : //docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/ts-elb-error-message.html有人可能会说,“就和 504 一起生活吧!”
但是,实际问题是,在我的生产设置中,我CloudFlare
在user
和之间Elastic Beanstalk ELB …
mod-wsgi amazon-web-services amazon-elb elastic-beanstalk apache-2.4