aws / aws/aws-eb-python-dockerfiles

Missing buffer size option for wsgi lead to 502

Ouverte
#4 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Shell
Étoiles
61
Forks
33
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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.

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Start by reading the uwsgi-start.sh script and the linked Elastic Beanstalk Python container configuration documentation. Reproduce the 502 with a response larger than 4096 and trace how WSGI options are passed. Done means the buffer-size option can be configured through the supported EBS setup without replacing the script.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
aws, flask, python, shell
Domaine
backend, cloud
Type d'issue
Fonctionnalité
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
42/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.