Skip to content

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 <[email protected]>
@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