# The number of shards on my nodes is no longer equal

**URL:** <https://discuss.elastic.co/t/the-number-of-shards-on-my-nodes-is-no-longer-equal/250934>\
**Category:** Elasticsearch\
**Created:** [October 5, 2020, 7:00am UTC](https://discuss.elastic.co/t/the-number-of-shards-on-my-nodes-is-no-longer-equal/250934 "2020-10-05T07:00:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![RusseL](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/russel/32/77328_2.png) [@RusseL](https://discuss.elastic.co/u/RusseL)\
**Post date:** [October 5, 2020, 7:00am UTC](https://discuss.elastic.co/t/the-number-of-shards-on-my-nodes-is-no-longer-equal/250934/1 "2020-10-05T07:00:23Z")

</div>

Hello,  
The number of shards on my nodes is no longer equal and I constantly see this kind of information in the logs of the main-2 node. What could be the reason for this?  
I am using Elasticsearch and Kibana version 7.4.2.

````auto
[2020-10-04T23:59:43,874][INFO][o.e.c.r.a.DiskThresholdMonitor] [master-2] low disk watermark [85%] exceeded on [NVXXnkg9RcS1LJHbxE4JWw][data-4][/var/lib/elasticsearch/nodes/0] free: 646.7gb[13.9%], replicas will not be assigned to this node
[2020-10-04T23:59:43,874][INFO][o.e.c.r.a.DiskThresholdMonitor] [master-2] low disk watermark [85%] exceeded on [U8_onApfRnG7fpToARusIw][data-7][/var/lib/elasticsearch/nodes/0] free: 606.3gb[13.5%], replicas will not be assigned to this node
[2020-10-04T23:59:43,874][INFO][o.e.c.r.a.DiskThresholdMonitor] [master-2] low disk watermark [85%] exceeded on [vKA6qG2WRr2VJnK4wNVYOA][data-2][/var/lib/elasticsearch/nodes/0] free: 555.4gb[12.4%], replicas will not be assigned to this node
[2020-10-04T23:59:43,874][INFO][o.e.c.r.a.DiskThresholdMonitor] [master-2] low disk watermark [85%] exceeded on [jFQih3_gQ8-MdAzbTwlHFg][data-5][/var/lib/elasticsearch/nodes/0] free: 638.4gb[13.7%], replicas will not be assigned to this node
[2020-10-04T23:59:43,874][INFO][o.e.c.r.a.DiskThresholdMonitor] [master-2] low disk watermark [85%] exceeded on [_BUmAFaYTGi-6aaYnPlqvw][data-1][/var/lib/elasticsearch/nodes/0] free: 644.8gb[14.4%], replicas will not be assigned to this node

When I try to restart services by making similar changes to the nodes' elasticsearch.yml file, the services are not restarted.

    # /etc/elasticsearch/elasticsearch.yml
cluster.routing.allocation.disk.threshold_enabled: true
cluster.routing.allocation.disk.watermark.flood_stage: 5gb
cluster.routing.allocation.disk.watermark.low: 30gb
cluster.routing.allocation.disk.watermark.high: 20gb ```
````

---

<div class="post-metadata">

**Author:** ![RusseL](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/russel/32/77328_2.png) [@RusseL](https://discuss.elastic.co/u/RusseL)\
**Post date:** [October 5, 2020, 7:03am UTC](https://discuss.elastic.co/t/the-number-of-shards-on-my-nodes-is-no-longer-equal/250934/2 "2020-10-05T07:03:04Z")

</div>

![Adsız](https://us1.discourse-cdn.com/elastic/original/3X/d/8/d8075d608d9f0ccb4530809c7a1f796303a41fa3.png)

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [October 5, 2020, 8:04am UTC](https://discuss.elastic.co/t/the-number-of-shards-on-my-nodes-is-no-longer-equal/250934/3 "2020-10-05T08:04:57Z")

</div>

I believe those parameters need to be set through the APIs and not through the elasticsearch.yml file.

---

<div class="post-metadata">

**Author:** ![RusseL](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/russel/32/77328_2.png) [@RusseL](https://discuss.elastic.co/u/RusseL)\
**Post date:** [October 5, 2020, 10:54am UTC](https://discuss.elastic.co/t/the-number-of-shards-on-my-nodes-is-no-longer-equal/250934/4 "2020-10-05T10:54:57Z")

</div>

Thanks for the help. @Christian_Dahlqvist

---

<div class="post-metadata">

**Author:** ![RusseL](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/russel/32/77328_2.png) [@RusseL](https://discuss.elastic.co/u/RusseL)\
**Post date:** [October 5, 2020, 11:17am UTC](https://discuss.elastic.co/t/the-number-of-shards-on-my-nodes-is-no-longer-equal/250934/5 "2020-10-05T11:17:11Z")

</div>

Finally, what is your suggestion for these settings for my cluster? @Christian_Dahlqvist

Total Disk 42TB

`cluster.routing.allocation.disk.threshold_enabled: true cluster.routing.allocation.disk.watermark.flood_stage: cluster.routing.allocation.disk.watermark.low: cluster.routing.allocation.disk.watermark.high: `

---

<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:** [November 2, 2020, 11:17am UTC](https://discuss.elastic.co/t/the-number-of-shards-on-my-nodes-is-no-longer-equal/250934/6 "2020-11-02T11:17:25Z")

</div>

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