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


#1

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.


(David Pilato) #2

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"
  }
}

(system) #4

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