# Automatic rerouting of old indices

**URL:** <https://discuss.elastic.co/t/automatic-rerouting-of-old-indices/193080>\
**Category:** Elasticsearch\
**Created:** [July 31, 2019, 9:24am UTC](https://discuss.elastic.co/t/automatic-rerouting-of-old-indices/193080 "2019-07-31T09:24:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![siginigin](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@siginigin](https://discuss.elastic.co/u/siginigin)\
**Post date:** [July 31, 2019, 9:24am UTC](https://discuss.elastic.co/t/automatic-rerouting-of-old-indices/193080/1 "2019-07-31T09:24:00Z")

</div>

Hi,

I have 3 nodes and indices with 3 shards and one replica. I see some of my old indices have primary shards on the same node. I believe this happened during midnights, when indice was created, but some node was down. Now I can manually move shards to different nodes using cluster reroute, but I thought this should be done automatically. But this is not happening, although cluster.routing.allocation.enable is set to all. So how to achieve this? Should I use curator? And am I right thinking that having all primary shards on same node is slower than having them spread across cluster?

Thank you very much for help.

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [July 31, 2019, 9:40am UTC](https://discuss.elastic.co/t/automatic-rerouting-of-old-indices/193080/2 "2019-07-31T09:40:41Z")

</div>

> [@siginigin](#):
>
> am I right thinking that having all primary shards on same node is slower than having them spread across cluster?

Not really, no, and certainly not if these are "old" indices that see very little indexing traffic. From a search point of view there is absolutely no difference between primaries and replicas.

---

<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:** [August 28, 2019, 9:40am UTC](https://discuss.elastic.co/t/automatic-rerouting-of-old-indices/193080/3 "2019-08-28T09:40:56Z")

</div>

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