-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multipart features #1358
Multipart features #1358
Conversation
Some S3 compatible setups may have a different limit for maximum file size in multipart uploads, so allow for overriding it. Signed-off-by: Lukasz Jernas <lukasz.jernas@allegro.pl>
Signed-off-by: Lukasz Jernas <lukasz.jernas@allegro.pl>
Signed-off-by: Lukasz Jernas <lukasz.jernas@allegro.pl>
Signed-off-by: Lukasz Jernas <lukasz.jernas@allegro.pl>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Thank you.
Small suggestions and LGTM!
pkg/objstore/s3/s3.go
Outdated
|
||
// Use the default minio minPartSize if not set | ||
if config.PartSize == 0 { | ||
config.PartSize = 1024 * 1024 * 128 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
putting this 1024 * 1024 * 128
in some meaningfully named constant would be nice for a reader.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hope it's better now, although I couldn't really find a meaningful variable name which wouldn't require an explanation anyway.
Extract calculation to a constant and fixup comments.
Signed-off-by: Lukasz Jernas <lukasz.jernas@allegro.pl>
Great, thanks for this! We actually lately hit scenario where we need this feature 👍 |
maybe worth to add to the changelog? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well tested and makes sense, LGTM!
* master: iter.go: error message typo correction (thanos-io#1376) Fix usage of $GOPATH in Makefile (thanos-io#1379) Moved Prometheus 2.11.1 and TSDB to 0.9.1 (thanos-io#1380) Store latest config hash and timestamp as metrics (thanos-io#1378) pkg/receive/handler.go: log errors (thanos-io#1372) receive: Hash-ring metrics (thanos-io#1363) receiver: avoid race of hashring (thanos-io#1371) feat compact: added readiness Prober (thanos-io#1297) Add changelog entry for S3 option (thanos-io#1361) Multipart features (thanos-io#1358) Added katacoda.yaml (thanos-io#1359) Remove deprecated option from example (thanos-io#1351) Move suggestion about admin API to appropriate place (thanos-io#1355)
Some S3 compatible setups may have a different limit for maximum
file size in multipart uploads, so allow for overriding it.
Signed-off-by: Lukasz Jernas lukasz.jernas@allegro.pl
Changes
Added
part_size
parameter to S3 YAML config file in bytes to allow for setting different multipart part size for chunk upload.Verification
Added a config test and tested in a real world scenario.