Skip to content

Conversation

SungJin1212
Copy link
Member

This PR adds hedged requests to Store Gateway. It can reduce the tail latency between Store Gateway and Object store.

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

Checklist

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

@SungJin1212 SungJin1212 force-pushed the Add-hedged-request-to-Store-Gateway branch from b5378b2 to 3994384 Compare December 3, 2024 02:30
@SungJin1212 SungJin1212 requested a review from yeya24 December 3, 2024 02:53
Copy link
Contributor

@yeya24 yeya24 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. Just a small nit

@SungJin1212 SungJin1212 force-pushed the Add-hedged-request-to-Store-Gateway branch 2 times, most recently from c595c0f to cbd4232 Compare December 3, 2024 04:33
Copy link
Member

@friedrichg friedrichg left a comment

Choose a reason for hiding this comment

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

LGTM Only a minor typo!

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Dec 3, 2024
@SungJin1212 SungJin1212 force-pushed the Add-hedged-request-to-Store-Gateway branch from cbd4232 to dca3507 Compare December 3, 2024 11:26
@yeya24 yeya24 merged commit 91ff8b4 into cortexproject:master Dec 3, 2024
16 checks passed
hrt.mu.Lock()
err = hrt.TDigest.Add(duration)
if err != nil {
return nil, err
Copy link
Contributor

Choose a reason for hiding this comment

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

Potential deadlock here

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks, I made a PR here thanos-io/thanos#7962.
cc. @yeya24

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for the catch! @damnever

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/store-gateway lgtm This PR has been approved by a maintainer size/L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Store Gateway: Support hedged requests to object store

4 participants