esctl
esctl copied to clipboard
Support excluding and including nodes for cluster routing allocation
Description
$ esctl operation node "<node-name-or-ip>" --exclude
$ esctl operation node "<node-name-or-ip>,...." --include
Motivation
This feature is practical for operational tasks. Maybe some elastic servers will be in maintenance mode.
Additional Context
Some examples:
- https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-cluster.html#cluster-shard-allocation-filtering
- https://opster.com/guides/elasticsearch/operations/elasticsearch-remove-node/