aws / aws/aws-eb-python-dockerfiles

Missing buffer size option for wsgi lead to 502

Aperta
#4 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Shell
Stelle
61
Fork
33
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
aws, flask, python, shell
Ambito
backend, cloud
Tipo di issue
Funzionalità
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
42/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.