# Shard Allocation

**URL:** <https://discuss.elastic.co/t/shard-allocation/323683>\
**Category:** Elasticsearch\
**Created:** [January 22, 2023, 4:07pm UTC](https://discuss.elastic.co/t/shard-allocation/323683 "2023-01-22T16:07:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kajal\_sri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kajal_sri/32/116258_2.png) [@kajal\_sri](https://discuss.elastic.co/u/kajal_sri)\
**Post date:** [January 22, 2023, 4:07pm UTC](https://discuss.elastic.co/t/shard-allocation/323683/1 "2023-01-22T16:07:02Z")

</div>

Getting Shard allocation issues. Able to see some partial indices as well and those are reported under UNASSIGNED shards.  
Any specific reason why am getting this issue and how to fix this?

---

<div class="post-metadata">

**Author:** ![sai\_saran1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sai_saran1/32/116661_2.png) [@sai\_saran1](https://discuss.elastic.co/u/sai_saran1)\
**Post date:** [January 22, 2023, 4:40pm UTC](https://discuss.elastic.co/t/shard-allocation/323683/2 "2023-01-22T16:40:38Z")

</div>

There could be many reasons for creating those partial indices under UNASSIGNED shards,  
for example there might be some network issues between the nodes, in this case Try to increase the retries. Try the below thing

```auto
curl --silent --request PUT --header 'Content-Type: application/json' xx.xx.xx.xx:9200/my_index_name/_settings?pretty=true --data-ascii '{
  "index": {
    "allocation": {
       "max_retries": 15
    }
  }                         
}'

```

Monitor for some time and you can verify again, if issue persists try to post some logs as well

---

<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:** [January 22, 2023, 7:18pm UTC](https://discuss.elastic.co/t/shard-allocation/323683/3 "2023-01-22T19:18:11Z")

</div>

> [@kajal\_sri](#):
>
> Any specific reason why am getting this issue and how to fix this?

The reference manual has [information about troubleshooting unassigned shards](https://www.elastic.co/guide/en/elasticsearch/reference/current/red-yellow-cluster-status.html). That's the best place to start. If you get stuck following the instructions there then please ask for more specific help.

> [@sai\_saran1](#):
>
> for example there might be some network issues between the nodes

There's not much point in guessing. Follow the guidance in the manual, it's much more useful.

---

<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 19, 2023, 7:19pm UTC](https://discuss.elastic.co/t/shard-allocation/323683/4 "2023-02-19T19:19:02Z")

</div>

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