# Shard routing allocation excludes

**URL:** <https://discuss.elastic.co/t/shard-routing-allocation-excludes/17358>\
**Category:** Elasticsearch\
**Created:** [May 6, 2014, 7:49am UTC](https://discuss.elastic.co/t/shard-routing-allocation-excludes/17358 "2014-05-06T07:49:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Salmon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michael_salmon/32/5330_2.png) [@Michael\_Salmon](https://discuss.elastic.co/u/Michael_Salmon)\
**Post date:** [May 6, 2014, 7:49am UTC](https://discuss.elastic.co/t/shard-routing-allocation-excludes/17358/1 "2014-05-06T07:49:43Z")

</div>

Recently I tried cluster.routing.allocation.exclude.\_ip and it worked once  
I had actually set the IP address, I had presumed that ES would look up the  
address for me. I also tried setting the parameter to 2 names in an array  
and while this was accepted it didn't seem to do anything.

In the end I decided to look at the source code and I found that as well as  
\_ip there was \_host, \_name and \_id which pleased me as I plan to have  
multiple nodes per host.

I wonder though if these are new or deprecated.

/Michael

--  
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/e3ad7bb3-1ba6-4002-9bb3-64271a303a4d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e3ad7bb3-1ba6-4002-9bb3-64271a303a4d%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, 1:31am UTC](https://discuss.elastic.co/t/shard-routing-allocation-excludes/17358/2 "2017-07-06T01:31:31Z")

</div>

Closed on July 6, 2017, 1:31am UTC


