# Elasticsearch 7.8.1 maximum shards open error

**URL:** <https://discuss.elastic.co/t/elasticsearch-7-8-1-maximum-shards-open-error/284234>\
**Category:** Elasticsearch\
**Created:** [September 15, 2021, 2:03am UTC](https://discuss.elastic.co/t/elasticsearch-7-8-1-maximum-shards-open-error/284234 "2021-09-15T02:03:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ManOfDestiny](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/manofdestiny/32/94577_2.png) [@ManOfDestiny](https://discuss.elastic.co/u/ManOfDestiny)\
**Post date:** [September 15, 2021, 2:03am UTC](https://discuss.elastic.co/t/elasticsearch-7-8-1-maximum-shards-open-error/284234/1 "2021-09-15T02:03:35Z")

</div>

`How can I solve this problem?`

**Env**

```auto
1. elsticsearch version : 7.8.1
2. cluster
   1) master node 3EA
   2) data Node : 7EA

```

**ConfigFile : elasticsearch.yml**

```auto
cluster.max_shards_per_node: 10000

```

**Cluster setting**

```auto
GET /_cluster/settings
{
    "persistent": {
        "cluster": {
            "max_shards_per_node": "10000"
        }
    },
    "transient": {
        "cluster": {
            "max_shards_per_node": "10000"
        }
    }
}

```

**Error Message**  
`[2021-09-15T10:46:16,486][WARN][logstash.outputs.elasticsearch][main] [01a19182.........]Could not index event to Elasticsearch. {:status=>400, :action=>["index", {:_id=>nil, :_index=>"service_log_svc0000028-2021-09", :routing=>nil, :_type=>"_doc"}, #LogStash::Event:0x61706a33], :response=>{"index"=>{"_index"=>"service_log_svc0000028-2021-09", "_type"=>"_doc", "_id"=>nil, "status"=>400, "error"=>{"type"=>"illegal_argument_exception", "reason"=>"Validation Failed: 1: this action would add [9] total shards, but this cluster currently has [2999]/[3000] maximum shards open;"}}}}`

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 15, 2021, 3:04am UTC](https://discuss.elastic.co/t/elasticsearch-7-8-1-maximum-shards-open-error/284234/2 "2021-09-15T03:04:40Z")

</div>

Welcome to our community! 😃

> [@ManOfDestiny](#):
>
> ```auto
> cluster.max_shards_per_node: 10000
> 
> ```

That's a massively bad idea and I'm sorry to say that there's no one here that should be helping you do this.

Why do you think you need to do this?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [September 15, 2021, 5:17am UTC](https://discuss.elastic.co/t/elasticsearch-7-8-1-maximum-shards-open-error/284234/3 "2021-09-15T05:17:01Z")

</div>

What is the output of:

```auto
GET /
GET /_cat/nodes?v
GET /_cat/health?v
GET /_cat/indices?v

```

If some outputs are too big, please share them on [gist.github.com](http://gist.github.com) and link them here.

---

<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:** [October 13, 2021, 5:17am UTC](https://discuss.elastic.co/t/elasticsearch-7-8-1-maximum-shards-open-error/284234/4 "2021-10-13T05:17:39Z")

</div>

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