# I am getting an error with sharding along with some exceptions

**URL:** <https://discuss.elastic.co/t/i-am-getting-an-error-with-sharding-along-with-some-exceptions/304618>\
**Category:** Elasticsearch\
**Created:** [May 12, 2022, 6:16pm UTC](https://discuss.elastic.co/t/i-am-getting-an-error-with-sharding-along-with-some-exceptions/304618 "2022-05-12T18:16:22Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rayhan\_Shaik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rayhan_shaik/32/98862_2.png) [@Rayhan\_Shaik](https://discuss.elastic.co/u/Rayhan_Shaik)\
**Post date:** [May 12, 2022, 6:16pm UTC](https://discuss.elastic.co/t/i-am-getting-an-error-with-sharding-along-with-some-exceptions/304618/1 "2022-05-12T18:16:23Z")

</div>

Hi guys,

I am new to ELK stack, I am getting an error in the Elasticsearch, and I am not sure how to fix this issue. can someone help me.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/3/9/3998d3f85252403dc7a75cde2693e641275a1e77.png)

thanks,  
Rayhan.

---

<div class="post-metadata">

**Author:** ![Rayhan\_Shaik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rayhan_shaik/32/98862_2.png) [@Rayhan\_Shaik](https://discuss.elastic.co/u/Rayhan_Shaik)\
**Post date:** [May 12, 2022, 6:19pm UTC](https://discuss.elastic.co/t/i-am-getting-an-error-with-sharding-along-with-some-exceptions/304618/2 "2022-05-12T18:19:26Z")

</div>

@stephenb can you please help me to sort it out, or can you please tag some body who can help me .. ?

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [May 12, 2022, 6:43pm UTC](https://discuss.elastic.co/t/i-am-getting-an-error-with-sharding-along-with-some-exceptions/304618/3 "2022-05-12T18:43:41Z")

</div>

@Rayhan_Shaik

Please be patient, this is a public forum with many questions / topics and your question is not more important than anyone else's question, this is not paid support. It may take several hours or perhaps a day or more IF someone even choses to answer (generally someone will)

Also and please do not directly `@` mention people that have not joined your topic. That is not best practice or really good forum etiquette

And finally please do not post pictures they are hard to read, can not be searched or debugged... please post formatted text

Also did you search this forum for "maximum shards open" there are many existing topics and answered for that question.

---

<div class="post-metadata">

**Author:** ![Rayhan\_Shaik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rayhan_shaik/32/98862_2.png) [@Rayhan\_Shaik](https://discuss.elastic.co/u/Rayhan_Shaik)\
**Post date:** [May 12, 2022, 6:47pm UTC](https://discuss.elastic.co/t/i-am-getting-an-error-with-sharding-along-with-some-exceptions/304618/4 "2022-05-12T18:47:15Z")

</div>

I am really sorry stephen, I beg a pardon

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [May 12, 2022, 6:50pm UTC](https://discuss.elastic.co/t/i-am-getting-an-error-with-sharding-along-with-some-exceptions/304618/5 "2022-05-12T18:50:11Z")

</div>

It OK now you know ... but this is a public forum... we want you and your questions ... we are happy to try to help ... and search is your friend 🙂

---

<div class="post-metadata">

**Author:** ![Rayhan\_Shaik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rayhan_shaik/32/98862_2.png) [@Rayhan\_Shaik](https://discuss.elastic.co/u/Rayhan_Shaik)\
**Post date:** [May 12, 2022, 6:51pm UTC](https://discuss.elastic.co/t/i-am-getting-an-error-with-sharding-along-with-some-exceptions/304618/6 "2022-05-12T18:51:56Z")

</div>

yeah thank you, but I am really sorry.....

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [May 12, 2022, 6:55pm UTC](https://discuss.elastic.co/t/i-am-getting-an-error-with-sharding-along-with-some-exceptions/304618/7 "2022-05-12T18:55:38Z")

</div>

> **[Cluster-level shard allocation and routing settings | Elasticsearch Guide...](https://www.elastic.co/guide/en/elasticsearch/reference/8.2/modules-cluster.html#misc-cluster-settings)**

here you go... 🙂  
All Good! Basically you have waay to many shards 🙂

> `cluster.max_shards_per_node`  
> ([Dynamic](https://www.elastic.co/guide/en/elasticsearch/reference/8.2/settings.html#dynamic-cluster-setting)) Limits the total number of primary and replica shards for the cluster. Elasticsearch calculates the limit as follows:
> 
> `cluster.max_shards_per_node * number of non-frozen data nodes`
> 
> Shards for closed indices do not count toward this limit. Defaults to `1000` . A cluster with no data nodes is unlimited.
> 
> Elasticsearch rejects any request that creates more shards than this limit allows. For example, a cluster with a `cluster.max_shards_per_node` setting of `100` and three data nodes has a shard limit of 300. If the cluster already contains 296 shards, Elasticsearch rejects any request that adds five or more shards to the cluster.
> 
> Notice that frozen shards have their own independent limit.

---

<div class="post-metadata">

**Author:** ![Rayhan\_Shaik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rayhan_shaik/32/98862_2.png) [@Rayhan\_Shaik](https://discuss.elastic.co/u/Rayhan_Shaik)\
**Post date:** [May 12, 2022, 6:58pm UTC](https://discuss.elastic.co/t/i-am-getting-an-error-with-sharding-along-with-some-exceptions/304618/8 "2022-05-12T18:58:29Z")

</div>

oh thank you sooo much stephen ....., thanks alot

---

<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:** [June 9, 2022, 6:59pm UTC](https://discuss.elastic.co/t/i-am-getting-an-error-with-sharding-along-with-some-exceptions/304618/9 "2022-06-09T18:59:10Z")

</div>

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