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

Add support for storage class configuration #1714

Merged
merged 11 commits into from Sep 12, 2022
Merged

Add support for storage class configuration #1714

merged 11 commits into from Sep 12, 2022

Conversation

amitsetty
Copy link
Contributor

@amitsetty amitsetty commented Sep 2, 2022

What this PR does: Adds support for storage class configuration

Which issue(s) this PR fixes:
Fixes #1684

Checklist

  • Tests updated
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@CLAassistant
Copy link

CLAassistant commented Sep 2, 2022

CLA assistant check
All committers have signed the CLA.

@amitsetty amitsetty marked this pull request as ready for review September 2, 2022 08:39
options := minio.PutObjectOptions{
PartSize: rw.cfg.PartSize,
}
options := getTempoObjectOptions(rw)
Copy link
Member

Choose a reason for hiding this comment

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

This does add UserTags here which feels like a bug fix. Can you think of any reason we wouldn't want that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thought about it a little.
This will just set the user tags to the new user tags during append.
Sounds to me like something that leads to a negligible performance impact and will only lead to a behavior change if someone changes the user tags (which in this case will lead to the new user tags when appending)

Seems to me that if anything this is a good thing unless there is a performance change. Do you think that this could lead to a performance change? If so I'll be more than happy to change it

Copy link
Contributor

Choose a reason for hiding this comment

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

Agree it seems like a great bug fix. It doesn't look like the headers are supported on UploadPart but they are supported on CreateMultipartUpload. Since it's working then either the extra headers don't matter or the minio client is handling it. Have you ran this against real S3 and seen any issues?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Haven't ran it against a real S3. Feel free to check and I'll make any changes necessary :)

Copy link
Member

@joe-elliott joe-elliott left a comment

Choose a reason for hiding this comment

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

Looks good! One comment and it looks like there's a conflict in the changelog

Copy link
Contributor

@mdisibio mdisibio left a comment

Choose a reason for hiding this comment

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

Hi, thanks for the contribution! Left some comments on naming, and a couple questions.

tempodb/backend/s3/s3_test.go Outdated Show resolved Hide resolved
tempodb/backend/s3/s3.go Outdated Show resolved Hide resolved
tempodb/backend/s3/s3_test.go Outdated Show resolved Hide resolved
tempodb/backend/s3/s3_test.go Show resolved Hide resolved
tempodb/backend/s3/config.go Outdated Show resolved Hide resolved
@amitsetty amitsetty requested review from mdisibio and joe-elliott and removed request for mdisibio September 2, 2022 16:17
@amitsetty amitsetty requested review from mdisibio and removed request for joe-elliott September 7, 2022 19:09
Copy link
Contributor

@mdisibio mdisibio left a comment

Choose a reason for hiding this comment

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

Tested against real S3 and it's working well. Thanks!

@mdisibio mdisibio merged commit 8cc206b into grafana:main Sep 12, 2022
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.

Allow configuring S3 StorageClass
4 participants