aws / aws/aws-eb-python-dockerfiles

Missing buffer size option for wsgi lead to 502

未关闭
#4 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Shell
星标
61
派生
33
PR 合并指标
30 天内没有已合并 PR

描述

When deploying a Flask app to EBS (using the [tutorial](http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-flask.html)) one can face 502 HTTP status code when returning response with a size bigger than 4096.
```
invalid request block size: 4654 (max 4096)...skip
```

Apparently this script does not contemplate to configure the buffer-size option for WSGI.
After reading the doc about [configuration on EBS](http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-container.html#create-deploy-python-custom-container-envprop) I am not sure if I can specify such an option without doing a hacky replace of the `uwsgi-start.sh` script and rerun it.

贡献指南

打开贡献指南

调研方向

首先阅读 uwsgi-start.sh 脚本以及链接的 Elastic Beanstalk Python 容器配置文档。使用大于 4096 的响应重现 502,并跟踪 WSGI 选项的传递方式。当无需替换脚本即可通过受支持的 EBS 设置配置 buffer-size 选项时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
aws, flask, python, shell
领域
backend, cloud
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
42/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。