Skip to content

Add per-tenant compaction window#3129

Merged
zalegrala merged 9 commits intografana:mainfrom
zalegrala:perTenantCompactionWindow
Nov 14, 2023
Merged

Add per-tenant compaction window#3129
zalegrala merged 9 commits intografana:mainfrom
zalegrala:perTenantCompactionWindow

Conversation

@zalegrala
Copy link
Copy Markdown
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
Copy Markdown
Collaborator

@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
Copy Markdown
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.

Comment thread modules/overrides/config.go Outdated
@joe-elliott
Copy link
Copy Markdown
Collaborator

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
Copy Markdown
Collaborator

@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
@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