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

Mimir query engine: track active queries #8277

Merged
merged 8 commits into from
Jun 6, 2024

Conversation

charleskorn
Copy link
Contributor

@charleskorn charleskorn commented Jun 5, 2024

What this PR does

This PR adds support for tracking active queries to the Mimir query engine.

Which issue(s) this PR fixes or relates to

(none)

Checklist

  • Tests updated.
  • [n/a] Documentation added.
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX].
  • [n/a] about-versioning.md updated with experimental features.

@charleskorn charleskorn marked this pull request as ready for review June 5, 2024 07:08
@charleskorn charleskorn requested a review from a team as a code owner June 5, 2024 07:08
Copy link
Contributor

@jhesketh jhesketh left a comment

Choose a reason for hiding this comment

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

Would be nice to test the tracked query before it is deleted, but I think this is sufficient and LGTM 👍

@charleskorn
Copy link
Contributor Author

Would be nice to test the tracked query before it is deleted, but I think this is sufficient and LGTM 👍

This is tested, but the assertion is a bit hidden - I'll make this clearer.

@charleskorn charleskorn requested a review from jhesketh June 6, 2024 01:02
Copy link
Contributor

@jhesketh jhesketh left a comment

Choose a reason for hiding this comment

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

Thanks, lgtm!

@charleskorn charleskorn enabled auto-merge (squash) June 6, 2024 01:43
@charleskorn charleskorn merged commit d29d1f1 into main Jun 6, 2024
29 checks passed
@charleskorn charleskorn deleted the charleskorn/active-query-tracker branch June 6, 2024 01:46
narqo pushed a commit to narqo/grafana-mimir that referenced this pull request Jun 6, 2024
* Mimir query engine: track active queries

* Add changelog entry

* Refactor test to make it clearer

* Refactor test to reduce duplication

* Refactor TestMemoryConsumptionLimit to follow same pattern

* Ensure that call to active query tracker is done with a context that respects the configured query timeout

* Fix linting issues

* Fix issue in test 🤦
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.

2 participants