apache / apache/openwhisk-devtools
Docker Compose limiting action size to 512KB?
- Lingua principale
- JavaScript
- Stelle
- 181
- Fork
- 124
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
User [has reported](
https://stackoverflow.com/questions/50203277/openwhisk-request-entity-too-large?noredirect=1#comment87573429_50203277) an issue deploying larger actions with error returned: `413 Request Entity Too Large`.
I've started devtools using docker compose and can reproduce the issue using the following command.
```
mkfile -n 512k source.js; ls -lh source.js; wsk action create test --kind nodejs:6 source.js -v
```
This is the response body from the CLI command.
```
413 Request Entity Too Large
413 Request Entity Too Large
openresty/1.13.6.1
```
Using a file with less than 512KB doesn't have this issue, e.g. `mkfile -n 511k`. Looks like the default body size configuration from nginx in the api gateway service could be set as 512k?
https://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size
If this is correct, can we update it to be the same as the maximum file size (48MB) for actions?
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Avvia il setup Docker Compose devtools e riproduci il problema con i comandi 512k e 511k forniti. Esamina la configurazione della dimensione del body di nginx o OpenResty dell'API gateway service e confrontala con il limite dichiarato di 48MB per le action. Il lavoro è completato quando è possibile distribuire action più grandi senza la risposta 413 e la configurazione pertinente è coperta da una verifica appropriata.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- docker-compose, javascript, nginx
- Ambito
- api, devops, infrastructure
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 38/100