apache / apache/openwhisk-devtools
Docker Compose limiting action size to 512KB?
- Vorherrschende Sprache
- JavaScript
- Sterne
- 181
- Forks
- 124
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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?
Beitragsleitfaden
Rechercherichtung
Starten Sie das Docker Compose devtools-Setup und reproduzieren Sie den Fehler mit den bereitgestellten 512k- und 511k-Befehlen. Prüfen Sie die nginx- oder OpenResty-Konfiguration zur Body-Größe des API gateway service und vergleichen Sie sie mit dem angegebenen 48MB-Aktionslimit. Erledigt ist die Aufgabe, wenn größere Aktionen ohne die 413-Antwort bereitgestellt werden können und die relevante Konfiguration durch eine geeignete Verifizierung abgedeckt ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- docker-compose, javascript, nginx
- Bereich
- api, devops, infrastructure
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 38/100