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

Enable compactor to use 'TokensFilePath' on ring lifecycler #5432

Merged
merged 2 commits into from
Jun 30, 2023

Conversation

danielblando
Copy link
Contributor

What this PR does:
Add configuration for compactor to save token on file

Which issue(s) this PR fixes:
In some scenarios (slow compactor), we can run into situations that 2 compactor are compacting the same customer. Compactor-A start cleaning from tenant-123, then a service restart occur and compactor-b with the new tokens is the owner of tenant-123, compactor-b also start cleaning of tenant -123.
This change avoids multiple resharding when compactors are restarted.

Checklist

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

@danielblando danielblando changed the title Enable compactor to use on ring lifecycler Enable compactor to use 'TokensFilePath' on ring lifecycler Jun 28, 2023
@danielblando danielblando marked this pull request as ready for review June 28, 2023 19:58
Signed-off-by: Daniel Deluiggi <ddeluigg@amazon.com>
Signed-off-by: Daniel Deluiggi <ddeluigg@amazon.com>
@yeya24 yeya24 merged commit 2a1c3c4 into cortexproject:master Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants