# Issues with index routing allocation in 1.3.1

**URL:** <https://discuss.elastic.co/t/issues-with-index-routing-allocation-in-1-3-1/19047>\
**Category:** Elasticsearch\
**Created:** [August 2, 2014, 4:11pm UTC](https://discuss.elastic.co/t/issues-with-index-routing-allocation-in-1-3-1/19047 "2014-08-02T16:11:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![James\_Dooley](https://avatars.discourse-cdn.com/v4/letter/j/a8b319/32.png) [@James\_Dooley](https://discuss.elastic.co/u/James_Dooley)\
**Post date:** [August 2, 2014, 4:11pm UTC](https://discuss.elastic.co/t/issues-with-index-routing-allocation-in-1-3-1/19047/1 "2014-08-02T16:11:08Z")

</div>

I noticed an issue after upgrading from 0.90.9 to 1.3.1 that the  
index.routing.allocation.include.\_ip setting per index is not being  
properly handled.  
I have used this setting in the past to move indices to an arching server  
for long term storage (outside of the cluster).

In the past the past I have been able to do the following:

Pre-move settings:  
'index' =\> {  
'number\_of\_replicas' =\> '2',  
'version' =\> {  
'created' =\> '900999'  
},  
'number\_of\_shards' =\> '4',  
'uuid' =\> 'xt8LJlsbR6COhx612BhiWg',  
'routing' =\> {  
'allocation' =\> {  
'include' =\> {  
'tag'  
=\> 'storage',  
},

'total\_shards\_per\_node' =\> '2'  
}  
}  
}  
};

Move settings:  
'index' =\> {  
'number\_of\_replicas' =\> '2',  
'version' =\> {  
'created' =\> '900999'  
},  
'number\_of\_shards' =\> '4',  
'uuid' =\> 'xt8LJlsbR6COhx612BhiWg',  
'routing' =\> {  
'allocation' =\> {  
'include' =\> {  
'tag'  
=\> '',  
'\_ip'  
=\> '192.168.0.51',  
},

'total\_shards\_per\_node' =\> '999'  
}  
}  
}  
};

This would force one copy of each shard to migrate to the archiving server  
from the storage cluster.

Now in 1.3.1 the shards do not move at all with these settings, instead I  
have to set the following (which is incorrect):  
'index' =\> {  
'number\_of\_replicas' =\> '2',  
'version' =\> {  
'created' =\> '900999'  
},  
'number\_of\_shards' =\> '4',  
'uuid' =\> 'xt8LJlsbR6COhx612BhiWg',  
'routing' =\> {  
'allocation' =\> {  
'include' =\> {  
'tag'  
=\> 'storage,backup',  
'\_ip'  
=\> '192.168.0.51',  
},

'total\_shards\_per\_node' =\> '999'  
}  
}  
}  
};

According to the documentation "This is in contrast to include which will  
include a node if ANY rule matches."

I did a quick test and it does look like if I do not provide the \_ip  
setting, but only use the tags setting the migration works as intended.  
This leads me to believe that the \_ip field is being completely ignored.  
In my use case I can't rely on the backup tag since I will have more than  
one backup server (using that tag), but need all of the data to go to a  
single server (ie need \_ip, \_host etc).

Unfortunately, I was running on an old cluster for awhile so I am not sure  
exactly where this broke at. But would have been somewhere between 0.90.9  
and 1.3.1.  
Has anyone else run in to this issue?

--  
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/f3a6af2c-7632-4329-8806-0dd0ae589068%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/f3a6af2c-7632-4329-8806-0dd0ae589068%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:11am UTC](https://discuss.elastic.co/t/issues-with-index-routing-allocation-in-1-3-1/19047/2 "2017-07-06T01:11:26Z")

</div>

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


