# Checking shards creation

**URL:** <https://discuss.elastic.co/t/checking-shards-creation/260192>\
**Category:** Elasticsearch\
**Created:** [January 5, 2021, 10:56am UTC](https://discuss.elastic.co/t/checking-shards-creation/260192 "2021-01-05T10:56:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kirillmandrygin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kirillmandrygin/32/81769_2.png) [@kirillmandrygin](https://discuss.elastic.co/u/kirillmandrygin)\
**Post date:** [January 5, 2021, 10:56am UTC](https://discuss.elastic.co/t/checking-shards-creation/260192/1 "2021-01-05T10:56:41Z")

</div>

When a node hits `cluster.max_shards_per_node` limit, the cluster status remains green.

Logs from elasticsearch:

```auto
    "Caused by: org.elasticsearch.common.ValidationException: Validation Failed: 1: this action would add [###] total shards, but this cluster currently has [1000]/[1000] maximum shards open;",

```

Cluster health:

```auto
    {
  "cluster_name" : "###",
  "status" : "green",
  "timed_out" : false,
  "number_of_nodes" : ###,
  "number_of_data_nodes" : ###,
  "active_primary_shards" : 1001,
  "active_shards" : 1001,
  "relocating_shards" : 0,
  "initializing_shards" : 0,
  "unassigned_shards" : 0,
  "delayed_unassigned_shards" : 0,
  "number_of_pending_tasks" : 0,
  "number_of_in_flight_fetch" : 0,
  "task_max_waiting_in_queue_millis" : 0,
  "active_shards_percent_as_number" : 100.0
}

```

And even if you run the test through filebeat (`filebeat test output`), it will pass successfully, because the shard creation is not checked.

Has anyone solved the problem of checking the write to elastic? Checking the connection turns out to be insufficient and it does not mean that the elastic can receive new shards.

---

<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:** [January 5, 2021, 7:54pm UTC](https://discuss.elastic.co/t/checking-shards-creation/260192/2 "2021-01-05T19:54:13Z")

</div>

Welcome to our community! 😃

That's a valid point, it'd be worth raising an issue on [https://github.com/elastic/beats/issues](https://github.com/elastic/beats/issues) to see if that's something that we can check for as part of those startup checks.

That said, it's always good to fix the underlying issue here and look at the high shard count.

---

<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 2, 2021, 7:54pm UTC](https://discuss.elastic.co/t/checking-shards-creation/260192/3 "2021-02-02T19:54:20Z")

</div>

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