Repository navigation
feat(storage): Upload large files as multipart uploads - #508
Draft
Bohreromir wants to merge 4 commits into
Draft
Bohreromir wants to merge 4 commits into
Bohreromir wants to merge 4 commits into
Conversation
POST /api/storage/upload/multipart starts an upload, PUT .../part sends one part of up to 5 MiB, POST .../complete assembles the parts and DELETE /api/storage/upload/multipart aborts the upload. Operations are counted in storage_multipart_uploads_total.
The file browser splits files larger than 5 MiB into parts and sends each in its own request, so no request comes near the body size limit. Up to three parts of a file and four across all files are in flight. Failed parts and the final complete are retried; when an upload fails or is stopped, it is aborted so S3 discards the parts. Files above 10,000 parts (52.4 GB) are rejected before anything is sent. Closes #476
Describes the 5 MiB parts, the 6 MiB proxy body size and a lifecycle rule for incomplete uploads, and notes in the changelog how to undo the settings #472 asked for. Adds E2E tests for a multipart upload and for stopping one.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The storage browser now uploads files larger than 5 MiB as multipart uploads.
No request comes near the body size limit, so this reverts #472.
AbortIncompleteMultipartUploadlifecycle rule.Closes #476.
Docs
modules/storage.adoc: new "Uploads" section with the size limit and the lifecycle ruleinstallation/helm.adoc: new "Request body size" section for ingress-nginx and nginxreference/environment-variables.adoc:BODY_SIZE_LIMIT,REQUEST_TIMEOUTremovedRelease note
The storage browser uploads files larger than 5 MiB in parts of 5 MiB, so uploads no longer need a large request body size limit or long request timeouts. The largest file is 52.4 GB.
Action required if you followed the 26.11.0 advice for large uploads: lower
BODY_SIZE_LIMIT(Helm:config.bodySizeLimit) back to6Mor remove it, removeREQUEST_TIMEOUT(Helm:config.requestTimeout), and set the proxy body size to6minstead of5g(request buffering can be turned back on). Proxies must accept 6 MiB request bodies.Checklist
Author
Reviewer
Acceptance