Skip to content
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

copyblocks: Configure s3 upload part size #8292

Merged
merged 4 commits into from
Jun 6, 2024

Conversation

narqo
Copy link
Contributor

@narqo narqo commented Jun 6, 2024

What this PR does

This one updates copyblocks package's s3 client to allow configuring the part-size for multipart uploads.

Also, enable pprof endpoints in copyblocks tool.

Checklist

  • Tests updated.
  • Documentation added.
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX].
  • about-versioning.md updated with experimental features.

@narqo narqo requested a review from a team as a code owner June 6, 2024 07:02
narqo added 3 commits June 6, 2024 09:02
Signed-off-by: Vladimir Varankin <vladimir.varankin@grafana.com>
Signed-off-by: Vladimir Varankin <vladimir.varankin@grafana.com>
Signed-off-by: Vladimir Varankin <vladimir.varankin@grafana.com>
@narqo narqo force-pushed the vldmr/copyblocks-s3-upload-opts branch from 05777f8 to aee2162 Compare June 6, 2024 07:02
Copy link
Contributor

@56quarters 56quarters left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with one small comment

opts := minio.PutObjectOptions{
PartSize: bkt.partSize,
// Refer to https://github.com/thanos-io/objstore/blob/71ef2d0cf7c4b42a6b25bc019de41bf0acecd30c/providers/s3/s3.go#L513-L516
NumThreads: 4,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this is already the default in Minio when there's no value set.

@56quarters 56quarters requested a review from andyasp June 6, 2024 13:14
Signed-off-by: Vladimir Varankin <vladimir.varankin@grafana.com>
@56quarters 56quarters merged commit d1731fc into main Jun 6, 2024
29 checks passed
@56quarters 56quarters deleted the vldmr/copyblocks-s3-upload-opts branch June 6, 2024 18:09
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