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 per-tenant compaction window #3129

Merged
merged 9 commits into from
Nov 14, 2023

Conversation

zalegrala
Copy link
Contributor

@zalegrala zalegrala commented Nov 9, 2023

What this PR does:

Add a compaction_window override to be used per-tenant. This will allow large and small tenants to scale the window independently and be a little more flexible.

Checklist

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

@zalegrala zalegrala marked this pull request as ready for review November 13, 2023 17:14
@zalegrala zalegrala changed the title Per tenant compaction window Add per-tenant compaction window Nov 13, 2023
Copy link
Member

@joe-elliott joe-elliott left a comment

Choose a reason for hiding this comment

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

is this referenceable using the old overrides config style? we might need it to be to used in our internal clusters since we haven't migrated forward.

@zalegrala
Copy link
Contributor Author

The config is bi-directional, but you can chose only new or legacy at a time. I updated the round-trip test for this change.

@joe-elliott
Copy link
Member

The config is bi-directional, but you can chose only new or legacy at a time. I updated the round-trip test for this change.

Good call. I see the code now 👍

Copy link
Member

@joe-elliott joe-elliott left a comment

Choose a reason for hiding this comment

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

lgtm. nice!

@zalegrala zalegrala merged commit 5e70235 into grafana:main Nov 14, 2023
15 checks passed
@zalegrala zalegrala deleted the perTenantCompactionWindow branch November 14, 2023 13:43
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