Repository navigation
Conversation
/ingester/renewTokens now accepts repeated `ingesters` form values listing the ring members to balance the new tokens against. Every other instance is treated as READONLY while generating them: the minimize-spread generator already skips READONLY instances when balancing ownership but never reuses their tokens, so the new tokens are balanced as if those instances were already gone. This lets an ingester rebalance ahead of a scale down, against the ring that will remain. The list must include the ingester itself. Lifecycler.RenewTokens now returns an error, including when the ring is empty or the instance is not in it, and the handler returns 400 for a list without the ingester and 500 when the renew fails, instead of always 204. Signed-off-by: Kyle Stang <kylestng@amazon.com>
kylestang
force-pushed
the
kyle/rebalance-scaledown
branch
from
November 25, 2026 22:39
869665c to
de9be79
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does:
/ingester/renewTokens now accepts repeated
ingestersform values listing the ring members to balance the new tokens against. Every other instance is treated as READONLY while generating them: the minimize-spread generator already skips READONLY instances when balancing ownership but never reuses their tokens, so the new tokens are balanced as if those instances were already gone. This lets an ingester rebalance ahead of a scale down, against the ring that will remain. The list must include the ingester itself.Lifecycler.RenewTokens now returns an error, including when the ring is empty or the instance is not in it, and the handler returns 400 for a list without the ingester and 500 when the renew fails, instead of always 204.
Which issue(s) this PR fixes:
Fixes #
Checklist
CHANGELOG.mdupdated - the order of entries should be[CHANGE],[FEATURE],[ENHANCEMENT],[BUGFIX]docs/configuration/v1-guarantees.mdupdated if this PR introduces experimental flags