Reverting a node exclusion setting?


I followed the instructions at the bottom
to exclude an instance in our test ES cluster:

curl -v -XPUT http://dev:9200/_cluster/settings -H "Content-Type:
application/json" -d '{
"cluster.routing.allocation.include._ip" : ""

And it worked great - the instance relocated all its shards to other nodes
and was left without shards on it.

I'm now looking at removing the exclusion but can't find a way to do that.

I tried to set the exclude pattern to empty, i.e. same as above but with an
empty string instead of the "", it seems to eventually work but
the empty "exclude" value is left in the stats and I'm not sure whether it
works correctly.
I'm suspicious of this because what happens is that node picked
up shards but another node has lost all its shards.

Is setting the value to empty string the right way to completely revert the
Is there another way to achieve this?

I found the following question circa 2012 but it too was left without an


You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
For more options, visit