# Hot / Warm by shards

**URL:** <https://discuss.elastic.co/t/hot-warm-by-shards/128365>\
**Category:** Elasticsearch\
**Created:** [April 17, 2018, 1:43pm UTC](https://discuss.elastic.co/t/hot-warm-by-shards/128365 "2018-04-17T13:43:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Exocomp](https://avatars.discourse-cdn.com/v4/letter/e/ea5d25/32.png) [@Exocomp](https://discuss.elastic.co/u/Exocomp)\
**Post date:** [April 17, 2018, 1:43pm UTC](https://discuss.elastic.co/t/hot-warm-by-shards/128365/1 "2018-04-17T13:43:49Z")

</div>

With the hot / warm architecture it is possible to route an index based on the box type. However, is it possible to route some shards of an index only. For example, with a 4 shard index, is it possible to have 2 primary shards on hot and 2 primary shards on warm ?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [April 17, 2018, 2:02pm UTC](https://discuss.elastic.co/t/hot-warm-by-shards/128365/2 "2018-04-17T14:02:18Z")

</div>

Primary and replica shards typically do the same work, so what you are describing would not really be a hot/warm architecture. You can also not control where a primary shard is located as Elasticsearch need to be able to promote replicas to primary as it sees fit.

---

<div class="post-metadata">

**Author:** ![Exocomp](https://avatars.discourse-cdn.com/v4/letter/e/ea5d25/32.png) [@Exocomp](https://discuss.elastic.co/u/Exocomp)\
**Post date:** [April 19, 2018, 8:32pm UTC](https://discuss.elastic.co/t/hot-warm-by-shards/128365/3 "2018-04-19T20:32:50Z")

</div>

Hmm, I see, the case I'm looking at is due to space restrictions. The hot node has storage that is performant but has limited space. There is an index that has 4 primary shards, when space is limited I was hoping it might be possible to put two of those shards on warm and keep two on hot with the goal being that at least 2 shards are on hot so would perform better.

---

<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:** [May 17, 2018, 8:47pm UTC](https://discuss.elastic.co/t/hot-warm-by-shards/128365/4 "2018-05-17T20:47:11Z")

</div>

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