generated from canonical/template-operator
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DPE-4935] no allocation exclusions on restart (#391)
## Issue When an Opensearch node is restarted by the operator, currently the shards assigned to this node are first moved away from the node, and after restarting moved back. This is a lot of work that, in case of simple restarts, is not necessary. To avoid this behavior, no allocation exclusion should be added for the departing node, when a restart operation is performed. ## Solution Check for the `restart` flag in `_stop_opensearch()` and pass it through to `opensearch_exclusions.add_current()`. If set to `True`, only the voting exclusion should be added for the departing node, but no allocation exclusion.
- Loading branch information
Showing
3 changed files
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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 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 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