On an Elasticsearch cluster, how to have a node not allocate shards on it?

On an Elasticsearch n-node cluster, how can you flag a node so not to have shards allocated on that node (for instance when you're putting the node into maintenance)?

Thanks in advance.

Have a look at https://www.elastic.co/guide/en/elasticsearch/reference/current/allocation-filtering.html

For example:

PUT _cluster/settings
{
  "transient" : {
    "cluster.routing.allocation.exclude._ip" : "10.0.0.1"
  }
}
1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.