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 generic retry in query frontend #5561

Merged
merged 5 commits into from
Sep 14, 2023

Conversation

harry671003
Copy link
Contributor

@harry671003 harry671003 commented Sep 13, 2023

What this PR does:
Currently, in query-frontend, only the range queries are retried. This PR introduces a generic retry in the query-frontend if the request fails downstream. Raising a draft PR to gather some feedback.

Alternative, I've looked at is #5560. But there are some concerns of unnecessarily encoding/decoding the response just for retry.

Which issue(s) this PR fixes:
Fixes #

Checklist

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

Signed-off-by: 🌲 Harry 🌊 John 🏔 <johrry@amazon.com>
pkg/frontend/v2/frontend.go Outdated Show resolved Hide resolved
Signed-off-by: 🌲 Harry 🌊 John 🏔 <johrry@amazon.com>
Signed-off-by: 🌲 Harry 🌊 John 🏔 <johrry@amazon.com>
Signed-off-by: 🌲 Harry 🌊 John 🏔 <johrry@amazon.com>
Signed-off-by: 🌲 Harry 🌊 John 🏔 <johrry@amazon.com>
@harry671003 harry671003 marked this pull request as ready for review September 14, 2023 17:33
@harry671003 harry671003 mentioned this pull request Sep 14, 2023
3 tasks
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.

LGTM!

@yeya24 yeya24 merged commit a897070 into cortexproject:master Sep 14, 2023
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants