Skip to content

Conversation

eeldaly
Copy link
Contributor

@eeldaly eeldaly commented May 22, 2025

What this PR does:
Adds percentage based sharding if the tenant's compactor.tenant-shard-size is > 0 and < 1.
This sets the shard size to compactor.tenant-shard-size * num_current_compactors

Which issue(s) this PR fixes:
Fixes #6738

Checklist

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

Copy link
Contributor

@yeya24 yeya24 left a comment

Choose a reason for hiding this comment

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

Thanks. This looks great!

@alexqyle
Copy link
Contributor

LGTM

@yeya24 yeya24 merged commit cef84e7 into cortexproject:master May 23, 2025
16 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Percentage Based Sharding for Compactors
3 participants