Skip to content

docker: Match s3proxy.v4-max-non-chunked-request-size default (128 MB)#785

Merged
gaul merged 1 commit intogaul:masterfrom
musabshak:master
Mar 1, 2025
Merged

docker: Match s3proxy.v4-max-non-chunked-request-size default (128 MB)#785
gaul merged 1 commit intogaul:masterfrom
musabshak:master

Conversation

@musabshak
Copy link
Copy Markdown
Contributor

  • Increase max non chunked request size to 128 MB #594 changed the hardcoded default value of v4MaxNonChunkedRequestSize to 128 MB
  • The 128 MB default only kicks in if the s3proxy.v4-max-non-chunked-request-size config is not set
  • However, when using the Docker image (in k8s, for example), if you don't explicitly override the S3PROXY_V4_MAX_NON_CHUNKED_REQ_SIZE env variable, the run-docker-container.sh sets this env var [1] to a default of 33554432 bytes (~32 MB)
  • This commit changes this defualt to 128 MB, to match the default value defined in the code itself

This change makes it such that an un-initiated user running s3Proxy via Docker / k8s does not run into an error of the form:

400 MaxMessageLengthExceeded Your request was too big

, when uploading a file between 32 - 128 MB.

[1] https://github.com/gaul/s3proxy/blob/master/src/main/resources/run-docker-container.sh#L26

- gaul#594 changed the hardcoded default
  value of `v4MaxNonChunkedRequestSize` to 128 MB
- The 128 MB default only kicks in if the
  `s3proxy.v4-max-non-chunked-request-size` config is not set
- However, when using the Docker image (in k8s, for example), if you
  don't explicitly override the `S3PROXY_V4_MAX_NON_CHUNKED_REQ_SIZE`
  env variable, the `run-docker-container.sh` sets this env var [1] to a
  default of 33554432 bytes (~32 MB)
- This commit changes this defualt to 128 MB, to match the default value
  defined in the code itself

This change makes it such that an un-initiated user running s3Proxy via
Docker / k8s does not run into an error of the form:

400 MaxMessageLengthExceeded Your request was too big

, when uploading a file between 32 - 128 MB.

[1] https://github.com/gaul/s3proxy/blob/master/src/main/resources/run-docker-container.sh#L26
@gaul gaul merged commit 977c83c into gaul:master Mar 1, 2025
@gaul
Copy link
Copy Markdown
Owner

gaul commented Mar 1, 2025

Thank you for your contribution @musabshak!

MareStare added a commit to MareStare/philomena that referenced this pull request Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants