Skip to content

[7.x] Add an allocation decider to prevent allocating shards to nodes which are preparing for shutdown (#71658)#72587

Merged
AthenaEryma merged 1 commit intoelastic:7.xfrom
AthenaEryma:backport/7.x/pr-71658
Apr 30, 2021
Merged

[7.x] Add an allocation decider to prevent allocating shards to nodes which are preparing for shutdown (#71658)#72587
AthenaEryma merged 1 commit intoelastic:7.xfrom
AthenaEryma:backport/7.x/pr-71658

Conversation

@AthenaEryma
Copy link
Copy Markdown
Contributor

Backports the following commits to 7.x:

… are preparing for shutdown (elastic#71658)

This PR adds an allocation decider which uses the metadata managed by the Node Shutdown API to prevent shards from being allocated to nodes which are preparing to be removed from the cluster.

Additionally, shards will not be auto-expanded to nodes which are preparing to restart, instead waiting until after the restart is complete to expand the shard replication.
@AthenaEryma AthenaEryma merged commit 50fbfd5 into elastic:7.x Apr 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant