# Proper index routing during Shrink in ES 5.5

**URL:** https://discuss.elastic.co/t/proper-index-routing-during-shrink-in-es-5-5/160532
**Category:** Elasticsearch
**Created:** [December 12, 2018, 11:45am UTC](https://discuss.elastic.co/t/proper-index-routing-during-shrink-in-es-5-5/160532 "2018-12-12T11:45:48Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![lonzodc](https://avatars.discourse-cdn.com/v4/letter/l/f08c70/32.png) [@lonzodc](https://discuss.elastic.co/u/lonzodc)
#### Post date: [December 12, 2018, 11:45am UTC](https://discuss.elastic.co/t/proper-index-routing-during-shrink-in-es-5-5/160532/1 "2018-12-12T11:45:48Z")

</div>

Hi,

I need to run the Shrink API on multiple indices having the default of 5 shards. Shrink will decrease the number of shard from 5 to 1. However, as a prerequisite to the Shrink API, a "index.routing.allocation.require.\_name" is needed to be set. How would I know which node is the best to route the shrunk index to?

Should the shrunk indices be spread across the nodes as equal as possible? There are 4 data nodes. Thanks!

---

<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: [January 9, 2019, 11:45am UTC](https://discuss.elastic.co/t/proper-index-routing-during-shrink-in-es-5-5/160532/2 "2019-01-09T11:45:53Z")

</div>

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