# How to prioritize data node to store primary shards

**URL:** <https://discuss.elastic.co/t/how-to-prioritize-data-node-to-store-primary-shards/46480>\
**Category:** Elasticsearch\
**Created:** [April 6, 2016, 6:54am UTC](https://discuss.elastic.co/t/how-to-prioritize-data-node-to-store-primary-shards/46480 "2016-04-06T06:54:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![szahnd](https://avatars.discourse-cdn.com/v4/letter/s/8c91f0/32.png) [@szahnd](https://discuss.elastic.co/u/szahnd)\
**Post date:** [April 6, 2016, 6:54am UTC](https://discuss.elastic.co/t/how-to-prioritize-data-node-to-store-primary-shards/46480/1 "2016-04-06T06:54:38Z")

</div>

Hi

We have a two node cluster and I would like to prioritize one data node to store all the primary shards. I would like to store all the primary shards on the node with more performance. Is this possible?

Thank you in advance and kind regards, Stefan

---

<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 6, 2016, 7:19am UTC](https://discuss.elastic.co/t/how-to-prioritize-data-node-to-store-primary-shards/46480/2 "2016-04-06T07:19:15Z")

</div>

Primary and replica shards do the same amount of work when it comes to indexing and searching so there is generally no point trying to allocated primaries to a specific node. Elasticsearch will promote replicas to primary due to events in the cluster, so these designations are not static.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 6, 2016, 7:55am UTC](https://discuss.elastic.co/t/how-to-prioritize-data-node-to-store-primary-shards/46480/3 "2016-04-06T07:55:00Z")

</div>

You can't, for the reasons Christian mentioned.

---

<div class="post-metadata">

**Author:** ![szahnd](https://avatars.discourse-cdn.com/v4/letter/s/8c91f0/32.png) [@szahnd](https://discuss.elastic.co/u/szahnd)\
**Post date:** [April 6, 2016, 8:37am UTC](https://discuss.elastic.co/t/how-to-prioritize-data-node-to-store-primary-shards/46480/4 "2016-04-06T08:37:41Z")

</div>

Thank you very much for the fast and clarifying answer. Best regards, Stefan

---

<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 5, 2017, 11:01pm UTC](https://discuss.elastic.co/t/how-to-prioritize-data-node-to-store-primary-shards/46480/5 "2017-07-05T23:01:59Z")

</div>


