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 config option to limit PostingsForMatchers() cache by size in bytes too #6151

Merged
merged 3 commits into from
Sep 29, 2023

Conversation

pracucci
Copy link
Collaborator

@pracucci pracucci commented Sep 28, 2023

What this PR does

In this PR I'm updating mimir-prometheus to get grafana/mimir-prometheus#533. It adds a config option to limit the PostingsForMatchers() cache size by bytes too. I'm also deprecating the "limit by number of items", cause the plan is that the "limit by bytes size" will replace it. Even if these config options are experimental, I'm not directly removing the "limit by number of items" config option rightaway, to smooth the transition at Grafana Labs.

I've manually tested it and looks working as expected 🤞

Which issue(s) this PR fixes or relates to

N/A

Checklist

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

@pracucci pracucci marked this pull request as ready for review September 28, 2023 12:44
@pracucci pracucci requested review from grafanabot and a team as code owners September 28, 2023 12:44
Copy link
Contributor

@56quarters 56quarters left a comment

Choose a reason for hiding this comment

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

LGTM

pkg/storage/tsdb/config.go Outdated Show resolved Hide resolved
Copy link
Contributor

@aknuds1 aknuds1 left a comment

Choose a reason for hiding this comment

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

LGTM, just see a couple of typos.

pkg/storage/tsdb/config.go Outdated Show resolved Hide resolved
…es too

Signed-off-by: Marco Pracucci <marco@pracucci.com>
Signed-off-by: Marco Pracucci <marco@pracucci.com>
Signed-off-by: Marco Pracucci <marco@pracucci.com>
@pracucci pracucci enabled auto-merge (squash) September 29, 2023 06:39
@pracucci pracucci merged commit d8f7a46 into main Sep 29, 2023
28 checks passed
@pracucci pracucci deleted the upgrade-mimir-prometheus branch September 29, 2023 11:09
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.

3 participants