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

Retry chunk pool exhaustion error at querier #5562

Closed
wants to merge 2 commits into from

Conversation

yeya24
Copy link
Contributor

@yeya24 yeya24 commented Sep 14, 2023

What this PR does:

Retry chunk pool exhaustion error at querier, but ignore it at query frontend retry middleware.

The idea is that when a request got chunk pool exhaustion error, retrying the whole query at query frontend is more expensive than retry at querier as querier only retries a single request so few blocks.

If the request still failed after 3 retries at querier, then we don't have to retry at query frontend again as the fleets might already overloaded.

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: Ben Ye <[email protected]>
return true
}

func yoloString(buf []byte) string {
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess you meant to rename this func?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's the name :)
We have same function in other places.

@yeya24
Copy link
Contributor Author

yeya24 commented Sep 17, 2023

I will close this pr and open a new one. Due to the new retry we added, some more refactoring is required.

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.

2 participants