-
Notifications
You must be signed in to change notification settings - Fork 25.5k
Prioritise movement of shards in non-preferred allocations #135058
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
Merged
nicktindall
merged 71 commits into
elastic:main
from
nicktindall:ES-12739_select_hot_shard_to_move_off_data_node_v2
Oct 7, 2025
+607
−74
Merged
Changes from 68 commits
Commits
Show all changes
71 commits
Select commit
Hold shift + click to select a range
053edfa
New new approach
nicktindall e38191a
Add logging when moveDecision is stale
nicktindall 909fd6d
assert we're not abusing the comparator
nicktindall 2696fd9
Change comparator ranking, test
nicktindall 10c042d
[CI] Update transport version definitions
f03e4b8
Use constant for missing write load
nicktindall be6253c
Merge remote-tracking branch 'origin/main' into ES-12739_select_hot_s…
nicktindall 9112b1d
Distinguish between move and move-not-preferred movements
nicktindall 49d11e3
Update javadoc
nicktindall 7e23a15
Tweak test params
nicktindall fcde6c6
Simplify logic
nicktindall ceff1e3
Simplify logic
nicktindall 6dcb6f0
Simplify logic
nicktindall c03bcde
Simplify logic
nicktindall fdca404
Tidy
nicktindall 36cff36
Simplify logic
nicktindall 98b5b80
Tidy
nicktindall df79e6f
Pedantry
nicktindall b2d67d7
Add test for NOT_PREFERRED movement
nicktindall 3c5f592
Pedantry
nicktindall ae504cd
Merge branch 'main' into ES-12739_select_hot_shard_to_move_off_data_n…
nicktindall f204577
Expand test to cover prioritisation
nicktindall 3c65dc8
Pedantry
nicktindall 3fd27b5
Pedantry
nicktindall 063995c
Reduce logging
nicktindall 3815293
Naming
nicktindall 34a88df
Constant
nicktindall cb8ac9a
Fix javadoc
nicktindall fa2b936
Merge branch 'main' into ES-12739_select_hot_shard_to_move_off_data_n…
nicktindall 1c4dfaf
Used cached MoveDecision if no other moves have been made
nicktindall 738875d
Abstract best move tracking and comparison out of decideMove
nicktindall f1061e2
Fix comment
nicktindall 7b42376
Move MostDesirableMovementsTracker and ShardMovementPriorityComparato…
nicktindall baf802d
Put explicit check in for rhsMissing and lhsMissing
nicktindall 104be72
Move shardMoved update below early exit
nicktindall 1302b46
[CI] Update transport version definitions
0055dc7
Clarify natural ordering in comparator
nicktindall a031158
Escape > and <
nicktindall b3d85fc
Merge branch 'main' into ES-12739_select_hot_shard_to_move_off_data_n…
nicktindall ede9e44
Move MoveNotPreferredDecision local to where it's used
nicktindall 2c87b39
Minimise change after merge
nicktindall 7ef836d
Fix HTML, reference relevant fields
nicktindall 4c6ebdb
Document THRESHOLD_RATIO
nicktindall a53787c
More specific naming on comparator, fix javadoc paragraph break
nicktindall 7d7d23c
Make comparator put most-preferred first
nicktindall 2199491
Use LinkedHashMap for predictable iteration order
nicktindall ee95443
Move tracker initialization above loop comment
nicktindall 3ee55e7
Merge branch 'main' into ES-12739_select_hot_shard_to_move_off_data_n…
nicktindall 8673351
Make it clearer what the predicate is when looking for the best non-p…
nicktindall 1b87daa
Update server/src/main/java/org/elasticsearch/cluster/routing/allocat…
nicktindall 57979dc
Improve naming
nicktindall 3fef076
Improve naming (again)
nicktindall 2ea2ea3
Remove decideCanAllocatePreferredOnly
nicktindall 105d7bf
Remove redundant check
nicktindall 50d266f
Merge remote-tracking branch 'origin/main' into ES-12739_select_hot_s…
nicktindall 7837211
Improve javadoc
nicktindall cc147c9
Improve javadoc
nicktindall 35dd5d4
Improve javadoc (again)
nicktindall c32d6e9
Improve javadoc
nicktindall 291416a
Use constant for threshold
nicktindall 0bfcf6b
Document test utility
nicktindall 7668101
Explain single shard indices
nicktindall f3588e2
Improve naming
nicktindall 7643dd0
Improve naming
nicktindall e514692
Reference comparator in javadoc
nicktindall ddc7739
Document test decider
nicktindall 7753a44
Merge branch 'main' into ES-12739_select_hot_shard_to_move_off_data_n…
nicktindall 4170af3
Test movement prioritization in IT
nicktindall 43a2dd3
Update server/src/internalClusterTest/java/org/elasticsearch/cluster/…
nicktindall 29a79e1
Fix Javadoc
nicktindall e64343f
Merge branch 'main' into ES-12739_select_hot_shard_to_move_off_data_n…
nicktindall File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.