# Reverting a node exclusion setting?

**URL:** <https://discuss.elastic.co/t/reverting-a-node-exclusion-setting/23162>\
**Category:** Elasticsearch\
**Created:** [April 9, 2015, 2:01am UTC](https://discuss.elastic.co/t/reverting-a-node-exclusion-setting/23162 "2015-04-09T02:01:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amos\_S](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amos_s/32/720_2.png) [@Amos\_S](https://discuss.elastic.co/u/Amos_S)\
**Post date:** [April 9, 2015, 2:01am UTC](https://discuss.elastic.co/t/reverting-a-node-exclusion-setting/23162/1 "2015-04-09T02:01:30Z")

</div>

Hello,

I followed the instructions at the bottom  
of [http://www.elastic.co/guide/en/elasticsearch/reference/1.5/modules-cluster.html](http://www.elastic.co/guide/en/elasticsearch/reference/1.5/modules-cluster.html)  
to exclude an instance in our test ES cluster:

curl -v -XPUT [http://dev:9200/\_cluster/settings](http://dev:9200/_cluster/settings) -H "Content-Type:  
application/json" -d '{  
"transient":{  
"cluster.routing.allocation.include.\_ip" : "10.0.11.26"  
}  
}'

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 "10.0.11.26", 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 10.0.11.26 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  
exclude?  
Is there another way to achieve this?

I found the following question circa 2012 but it too was left without an  
answer: [https://groups.google.com/forum/#!searchin/elasticsearch/revert$20exclude/elasticsearch/fY3fCOKzCUQ/VK\_yGVVVFcQJ](https://groups.google.com/forum/#!searchin/elasticsearch/revert%2420exclude/elasticsearch/fY3fCOKzCUQ/VK_yGVVVFcQJ)

Thanks.

--  
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 [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/1ab4c010-fbba-4c93-8a15-0f1e9efc1a63%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/1ab4c010-fbba-4c93-8a15-0f1e9efc1a63%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 12:20am UTC](https://discuss.elastic.co/t/reverting-a-node-exclusion-setting/23162/2 "2017-07-06T00:20:42Z")

</div>


