# Problem with cluster.max\_shards\_per\_node

**URL:** <https://discuss.elastic.co/t/problem-with-cluster-max-shards-per-node/209656>\
**Category:** Elasticsearch\
**Created:** [November 27, 2019, 10:15am UTC](https://discuss.elastic.co/t/problem-with-cluster-max-shards-per-node/209656 "2019-11-27T10:15:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![111228](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/111228/32/56505_2.png) [@111228](https://discuss.elastic.co/u/111228)\
**Post date:** [November 27, 2019, 10:15am UTC](https://discuss.elastic.co/t/problem-with-cluster-max-shards-per-node/209656/1 "2019-11-27T10:15:13Z")

</div>

Good day  
I have a problem  
:\_type=\>"\_doc", :routing=\>nil}, #LogStash::Event:0x23cacf18], :response=\>{"index"=\>{"\_index"=\>"logstash-nginx-domain", "\_type"=\>"\_doc", "\_id"=\>nil, "status"=\>400, "error"=\>{"type"=\>"validation\_exception", "reason"=\>"Validation Failed: 1: this action would add [2] total shards, but this cluster currently has [1000]/[1000] maximum shards open;"}}}}

but in my elasticsearch setting

 ![](https://us1.discourse-cdn.com/elastic/original/3X/0/4/04fc7eb3a7cef5a33863c760f4a6c649800393ac.png)  
I see cluster.max\_shards\_per\_node=5100  
where mistake?

---

<div class="post-metadata">

**Author:** ![mfries](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@mfries](https://discuss.elastic.co/u/mfries)\
**Post date:** [November 27, 2019, 1:29pm UTC](https://discuss.elastic.co/t/problem-with-cluster-max-shards-per-node/209656/2 "2019-11-27T13:29:50Z")

</div>

What is "total\_shards\_per\_node"?  
[https://www.elastic.co/guide/en/elasticsearch/reference/current/allocation-total-shards.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/allocation-total-shards.html)  
Normally it´s not set. But I have no other idea at this time.

---

<div class="post-metadata">

**Author:** ![111228](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/111228/32/56505_2.png) [@111228](https://discuss.elastic.co/u/111228)\
**Post date:** [November 27, 2019, 1:37pm UTC](https://discuss.elastic.co/t/problem-with-cluster-max-shards-per-node/209656/3 "2019-11-27T13:37:19Z")

</div>

![2019-11-27_25e0e9](https://us1.discourse-cdn.com/elastic/original/3X/7/4/749df92aebb2aed860dd21b96dc892d28317b601.png)  
this setting by default

---

<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:** [December 25, 2019, 1:37pm UTC](https://discuss.elastic.co/t/problem-with-cluster-max-shards-per-node/209656/4 "2019-12-25T13:37:23Z")

</div>

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