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

Query-frontend truncate the range queries at now + creation_grace_period #3172

Merged
merged 12 commits into from
Oct 11, 2022

Conversation

hi-rustin
Copy link
Contributor

@hi-rustin hi-rustin commented Oct 10, 2022

What this PR does

Query-frontend truncate the range queries at now + creation_grace_period. See more: #3144 (comment)

Which issue(s) this PR fixes or relates to

close #3144

Checklist

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

@hi-rustin hi-rustin marked this pull request as ready for review October 10, 2022 03:07
@hi-rustin hi-rustin requested a review from a team as a code owner October 10, 2022 03:07
Copy link
Contributor

@colega colega left a comment

Choose a reason for hiding this comment

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

Good job! Just a small thing pending.

Thank you for taking care of tidying unrelated comments :)

pkg/frontend/querymiddleware/limits.go Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
Co-authored-by: Oleg Zaytsev <mail@olegzaytsev.com>
Copy link
Collaborator

@pracucci pracucci left a comment

Choose a reason for hiding this comment

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

Thanks for working on this! ❤️

Similarly to what we did in https://github.com/grafana/mimir/pull/3134/files#diff-1e0a07c0c1ea87ab5a582d79c587a73a9b8e0680d89c61d5c94be106823a4a4e could you update the creation grace period description to mention that it's also used by query-frontend too? You can look at the PR #3134 for reference.

CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Contributor Author

@hi-rustin hi-rustin left a comment

Choose a reason for hiding this comment

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

Self-check. Ready for review.

@hi-rustin hi-rustin requested review from colega and pracucci and removed request for colega October 11, 2022 13:35
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated
@@ -4,6 +4,7 @@

### Grafana Mimir

* [CHANGE] Query-frontend: truncate queries based on the configured creation grace period (`--validation.create-grace-period`) to avoid querying too far into the future. #3172
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated.

Copy link
Collaborator

@pracucci pracucci left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@pracucci pracucci merged commit 8476226 into grafana:main Oct 11, 2022
@hi-rustin hi-rustin deleted the rustin-patch-limits branch October 12, 2022 01:12
@hi-rustin
Copy link
Contributor Author

Thanks for your review! 💚 💙 💜 💛 ❤️

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.

Query-frontend should not query too far into the future
3 participants