-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Add node REPLACE shutdown implementation #76247
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
elasticsearchmachine
merged 36 commits into
elastic:master
from
dakrone:node-replacement-decider
Oct 7, 2021
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
d1b8218
WIP, basic implementation
dakrone fd0c597
Pull `if` branch into a variable
dakrone 41c6238
Remove outdated javadoc
dakrone a96e596
Remove map iteration, use target name instead of id (whoops)
dakrone 238112a
Remove streaming from isReplacementSource
dakrone 2402803
Simplify getReplacementName
dakrone ff30a2a
Only calculate node shutdowns if canRemain==false and forceMove==false
dakrone 47500c7
Move canRebalance comment in BalancedShardsAllocator
dakrone 9ded9f3
Rename canForceDuringVacate -> canForceAllocateDuringReplace
dakrone f3613bc
Add comment to AwarenessAllocationDecider.canForceAllocateDuringReplace
dakrone 7b4c518
Revert changes to ClusterRebalanceAllocationDecider
dakrone 4ce00ef
Change "no replacement" decision message in NodeReplacementAllocation…
dakrone 27ebeeb
Only construct shutdown map once in isReplacementSource
dakrone cb1c0c4
Make node shutdowns and target shutdowns available within RoutingAllo…
dakrone c2571ee
Add randomization for adding the filter that is overridden in test
dakrone fe1889c
Add integration test with replicas: 1
dakrone 4f0da9c
Go nuts with the verbosity of allocation decisions
dakrone d659b11
Also check NODE_C in unit test
dakrone 448968b
Test with randomly assigned shard
dakrone e83b630
Fix test for extra verbose decision messages
dakrone df91ec1
Remove canAllocate(IndexMetadat, RoutingNode, RoutingAllocation) over…
dakrone 5724f2a
Merge remote-tracking branch 'origin/master' into node-replacement-de…
dakrone c3f6c23
Spotless :|
dakrone bc4c78b
Implement 100% disk usage check during force-replace-allocate
dakrone 21e9f9e
Add rudimentary documentation for "replace" shutdown type
dakrone f7c407f
Use RoutingAllocation shutdown map in BalancedShardsAllocator
dakrone 06320e3
Add canForceAllocateDuringReplace to AllocationDeciders & add test
dakrone 4ab4496
Switch from percentage to bytes in DiskThresholdDecider force check
dakrone e8773b7
Enhance docs with note about rollover, creation, & shrink
dakrone 658a721
Clarify decision messages, add test for target-only allocation
dakrone d4c8650
Simplify NodeReplacementAllocationDecider.replacementOngoing
dakrone fa92698
Start nodeC before nodeB in integration test
dakrone c27ea49
Merge remote-tracking branch 'origin/master' into node-replacement-de…
dakrone c237f95
Spotleeeessssssss! You get me every time!
dakrone f692e63
Remove outdated comment
dakrone f31c949
Merge remote-tracking branch 'origin/master' into node-replacement-de…
dakrone 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
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
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
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
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
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
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
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
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
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
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.