Amazon web services 504在AWS Elastic Beanstalk上运行flask应用程序时网关超时
我试图使用AWS Elastic Beanstalk运行我的烧瓶应用程序,但我面临504网关超时问题 我已经尝试了几种我发现的方法,但没有任何效果:/ 目前,我的配置是这样的: .ebextensions/python.configAmazon web services 504在AWS Elastic Beanstalk上运行flask应用程序时网关超时,amazon-web-services,nginx,flask,amazon-elastic-beanstalk,Amazon Web Services,Nginx,Flask,Amazon Elastic Beanstalk,我试图使用AWS Elastic Beanstalk运行我的烧瓶应用程序,但我面临504网关超时问题 我已经尝试了几种我发现的方法,但没有任何效果:/ 目前,我的配置是这样的: .ebextensions/python.config option_settings: "aws:elasticbeanstalk:container:python": WSGIPath: application:application packages: yum:
option_settings:
"aws:elasticbeanstalk:container:python":
WSGIPath: application:application
packages:
yum:
python3-devel: []
gcc: []
mariadb-devel: []
files:
"/etc/httpd/conf.d/wsgi_custom.conf":
mode: "000644"
owner: root
group: root
content: WSGIApplicationGroup %{GLOBAL}
container_commands:
01_restart_nginx:
command: "sudo service nginx reload"
.platform/nginx/conf.d/custom.conf
keepalive_timeout 3600s;
proxy_connect_timeout 3600s;
proxy_send_timeout 3600s;
proxy_read_timeout 3600s;
fastcgi_send_timeout 3600s;
fastcgi_read_timeout 3600s;
在日志文件中,错误如下所示:
/var/log/nginx/error.log
*1从上游读取响应头时上游超时(110:连接超时)
/var/log/web.stdout.log
[CRITICAL]工作线程超时