-
Notifications
You must be signed in to change notification settings - Fork 569
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
storegateway: improve contention around lazy-loading of blocks #8528
Conversation
I moved the changes back to draft. I think we're now allowing a race between |
4dfa8cf
to
63913f5
Compare
I believe it's now resolved, and so the PR is ready for review @56quarters @dimitarvdimitrov |
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.
LGTM with a few small comments. I'd like to here @dimitarvdimitrov's opinion before merging though.
bdf4151
to
7ec5c11
Compare
sorry for the delay, i'll take a look tomorrow |
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.
this makes lazy loading in LabelValues call sequential instead of concurrent. I think we should fix it before merging. Left some other less critical remarks.
c56260e
to
8974c7e
Compare
Signed-off-by: Vladimir Varankin <[email protected]>
Signed-off-by: Vladimir Varankin <[email protected]>
…index reader Signed-off-by: Vladimir Varankin <[email protected]>
Signed-off-by: Vladimir Varankin <[email protected]>
Co-authored-by: Nick Pillitteri <[email protected]>
Co-authored-by: Dimitar Dimitrov <[email protected]>
Signed-off-by: Vladimir Varankin <[email protected]>
Signed-off-by: Vladimir Varankin <[email protected]>
Signed-off-by: Vladimir Varankin <[email protected]>
Signed-off-by: Vladimir Varankin <[email protected]>
Signed-off-by: Vladimir Varankin <[email protected]>
8974c7e
to
5266615
Compare
@dimitarvdimitrov I've addressed all the comments. Could you give it another look? |
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.
LGTM! 🚀
What this PR does
These changes are meant to improve the contention around the internal set of blocks in
storegateway.BucketStore
.Here, the idea is to rely on
sync.Map
as a data structure that holdsblocks
:Which issue(s) this PR fixes or relates to
Fixes #8258
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]
.about-versioning.md
updated with experimental features.