# Elastic Search is not assigning index to all the nodes in the cluster

**URL:** <https://discuss.elastic.co/t/elastic-search-is-not-assigning-index-to-all-the-nodes-in-the-cluster/224474>\
**Category:** Elasticsearch\
**Created:** [March 20, 2020, 6:52pm UTC](https://discuss.elastic.co/t/elastic-search-is-not-assigning-index-to-all-the-nodes-in-the-cluster/224474 "2020-03-20T18:52:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deepthi\_Tummala](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/deepthi_tummala/32/60515_2.png) [@Deepthi\_Tummala](https://discuss.elastic.co/u/Deepthi_Tummala)\
**Post date:** [March 20, 2020, 6:52pm UTC](https://discuss.elastic.co/t/elastic-search-is-not-assigning-index-to-all-the-nodes-in-the-cluster/224474/1 "2020-03-20T18:52:55Z")

</div>

Hi,  
I have a 6 node ES cluster. When a new index is created it is assigning to only two nodes..Is there any setting I need to set to even distribution of shards of each index along all the nodes....

Thanks.

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [March 23, 2020, 11:08am UTC](https://discuss.elastic.co/t/elastic-search-is-not-assigning-index-to-all-the-nodes-in-the-cluster/224474/2 "2020-03-23T11:08:19Z")

</div>

I think you are searching for the number of primary shards option (given that you have replicas, you may want to set this to half of your nodes). See [https://www.elastic.co/guide/en/elasticsearch/reference/7.6/index-modules.html#\_static\_index\_settings](https://www.elastic.co/guide/en/elasticsearch/reference/7.6/index-modules.html#_static_index_settings)

---

<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:** [April 20, 2020, 11:08am UTC](https://discuss.elastic.co/t/elastic-search-is-not-assigning-index-to-all-the-nodes-in-the-cluster/224474/3 "2020-04-20T11:08:21Z")

</div>

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