# Multiple primary shards and how this work on multiple node

**URL:** <https://discuss.elastic.co/t/multiple-primary-shards-and-how-this-work-on-multiple-node/114080>\
**Category:** Elasticsearch\
**Created:** [January 4, 2018, 11:44am UTC](https://discuss.elastic.co/t/multiple-primary-shards-and-how-this-work-on-multiple-node/114080 "2018-01-04T11:44:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tremk](https://avatars.discourse-cdn.com/v4/letter/t/85f322/32.png) [@tremk](https://discuss.elastic.co/u/tremk)\
**Post date:** [January 4, 2018, 11:44am UTC](https://discuss.elastic.co/t/multiple-primary-shards-and-how-this-work-on-multiple-node/114080/1 "2018-01-04T11:44:42Z")

</div>

Hello

In elasticsearch we can have multiple primary shards i.e by default we have 5 primary shards for one index.

How elasticsearch store 5 primary shard, i.e if i have 3 nodes in the clusters and create an index with 5 primary shards and no replica shards?  
will elasticsearch store 2 in node 1, 1 in node 2, and 2 in node 3?

If elasticsearch store primary shards in different nodes, what will happen if some node down?  
i.e if node 1 down, it mean index will broken and not usable?

thanks

---

<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:** [January 4, 2018, 11:47am UTC](https://discuss.elastic.co/t/multiple-primary-shards-and-how-this-work-on-multiple-node/114080/2 "2018-01-04T11:47:33Z")

</div>

Yes, the available shards will be spread out automatically across the available data nodes. If you have no replicas configured, some of the shards will be unavailable for reading and writing if you lose or have problems with any of the nodes node. This is why using at least one replica is recommended for a production cluster.

---

<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:** [February 1, 2018, 11:48am UTC](https://discuss.elastic.co/t/multiple-primary-shards-and-how-this-work-on-multiple-node/114080/3 "2018-02-01T11:48:03Z")

</div>

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