Skip to content

Conversation

danielblando
Copy link
Contributor

@danielblando danielblando commented Mar 12, 2025

What this PR does:
When restarting ingester which are in READONLY we can cause a resharding which this PR is trying to avoid.

When a ingester is in READONLY, we extend the shard of tenant to return more than the original value. This is done to avoid errors on Push or missing data on Query.
Problem occurs when we restart ingester. The READONLY ingester will go to LEAVING which is ok for Push but it changes the tenant shard for Query. It can lead to miss calls from querier/ruler to ingesters.

Which issue(s) this PR fixes:
Fixes #

Checklist

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

@danielblando danielblando changed the title Keep READONLY when stopping lifecycler Keep readonly state when stopping lifecycler Mar 12, 2025
Signed-off-by: Daniel Deluiggi <[email protected]>
@pull-request-size pull-request-size bot added size/M and removed size/L labels Mar 12, 2025
Signed-off-by: Daniel Deluiggi <[email protected]>
@pull-request-size pull-request-size bot added size/L and removed size/M labels Mar 12, 2025
@danielblando danielblando marked this pull request as ready for review March 12, 2025 23:17
@alexqyle
Copy link
Contributor

LGTM

Signed-off-by: Daniel Deluiggi <[email protected]>
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Mar 13, 2025
@danielblando danielblando merged commit 03a2737 into cortexproject:master Mar 13, 2025
17 checks passed
@danielblando danielblando deleted the readonly-lifecycler branch March 13, 2025 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/ring lgtm This PR has been approved by a maintainer size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants