# Disk threshold

**URL:** https://discuss.elastic.co/t/disk-threshold/271414
**Category:** Elasticsearch
**Created:** [April 27, 2021, 4:40pm UTC](https://discuss.elastic.co/t/disk-threshold/271414 "2021-04-27T16:40:57Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Abhishek\_Shinde](https://avatars.discourse-cdn.com/v4/letter/a/6bbea6/32.png) [@Abhishek\_Shinde](https://discuss.elastic.co/u/Abhishek_Shinde)
#### Post date: [April 27, 2021, 4:40pm UTC](https://discuss.elastic.co/t/disk-threshold/271414/1 "2021-04-27T16:40:58Z")

</div>

We are trying to implement single node cluster of Elasticsearch per installation of our application. Our application is on-prem. I was looking at the indexing data location parameters in the Elastic documentation. I came to know there are disk-based shard allocator settings with following parameters,

1. cluster.routing.allocation.disk.threshold\_enabled
2. cluster.routing.allocation.disk.watermark.low
3. cluster.routing.allocation.disk.watermark.high

I would need to know whether by default Elasticsearch sets the disk threshold as Enabled?

I don’t see the use case of keeping it enable by default in a single node cluster where we will be having multiple disks on a single node/server. We will write our own disk alerts to monitor the threshold.

It would be good if anyone can explain the low and high alert meaning with some simple examples?

---

<div class="post-metadata">

### Author: ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)
#### Post date: [April 27, 2021, 5:10pm UTC](https://discuss.elastic.co/t/disk-threshold/271414/2 "2021-04-27T17:10:55Z")

</div>

I think the [reference manual](https://www.elastic.co/guide/en/elasticsearch/reference/7.12/modules-cluster.html#disk-based-shard-allocation) answers most of these questions so I suggest starting there.

The `low` and `high` watermarks are only really useful for logging in a single-node setup, but the `flood_stage` watermark is still valuable there.

---

<div class="post-metadata">

### Author: ![Abhishek\_Shinde](https://avatars.discourse-cdn.com/v4/letter/a/6bbea6/32.png) [@Abhishek\_Shinde](https://discuss.elastic.co/u/Abhishek_Shinde)
#### Post date: [May 2, 2021, 5:13pm UTC](https://discuss.elastic.co/t/disk-threshold/271414/3 "2021-05-02T17:13:11Z")

</div>

Hi @DavidTurner

Could you please let me know, how the high watermark is helpful in a single-node cluster setup considering "one node one disk" as it works for shard relocation across nodes.

In a single node cluster, I believe disk\_low\_watermark and flood\_stage will play an important role?

Kindly confirm!

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [May 2, 2021, 5:53pm UTC](https://discuss.elastic.co/t/disk-threshold/271414/4 "2021-05-02T17:53:04Z")

</div>

For a single data node you need to worry only about the `flood_stage` configuration, the `low` and `high` watermark will have no impact.

The `low` watermark does not impact the primary shards of new indices, as explained in the reference manual.

> This setting has no effect on the primary shards of newly-created indices but will prevent their replicas from being allocated.

Since you have a single-node, you do not have any replicas.

You also do not have other nodes, so the `high` watermark will also has no impact as it has nowhere to move shards.

The `flood_stage` is the one that will impact you, since it will block the writes in your node.

As David said before, the `low` and `high` will be useful just for logging, you should monitor the logs of your nodes and use this information to decide when to action and free disk space.

---

<div class="post-metadata">

### Author: ![Abhishek\_Shinde](https://avatars.discourse-cdn.com/v4/letter/a/6bbea6/32.png) [@Abhishek\_Shinde](https://discuss.elastic.co/u/Abhishek_Shinde)
#### Post date: [May 2, 2021, 6:00pm UTC](https://discuss.elastic.co/t/disk-threshold/271414/5 "2021-05-02T18:00:32Z")

</div>

Thank you! This information is helpful.

---

<div class="post-metadata">

### Author: ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)
#### Post date: [May 3, 2021, 7:44am UTC](https://discuss.elastic.co/t/disk-threshold/271414/6 "2021-05-03T07:44:33Z")

</div>

> [@Abhishek\_Shinde](#):
>
> in a single-node cluster setup considering "one node one disk"

[Elsewhere](https://discuss.elastic.co/t/control-over-writing-data-to-a-specific-drive/271695/5) you are asking about a design in which you have multiple disks, and therefore multiple nodes, all running on a single host, so I think you don't have a single-node cluster as you claim here. In that case the watermarks all work as documented to move shards around to ensure that no node's disk gets too full.

---

<div class="post-metadata">

### Author: ![Abhishek\_Shinde](https://avatars.discourse-cdn.com/v4/letter/a/6bbea6/32.png) [@Abhishek\_Shinde](https://discuss.elastic.co/u/Abhishek_Shinde)
#### Post date: [May 3, 2021, 5:57pm UTC](https://discuss.elastic.co/t/disk-threshold/271414/7 "2021-05-03T17:57:35Z")

</div>

Thanks David! We are planning to integrate Elasticsearch with Enterprise application. We are heavily dependent on indexing. Our Application has use cases of scaling storage vertically as well as horizontally. Existing customers has stored around 10 TB of indexing data on a single sever with older indexing engine. Now, we are seeing challenge fulfilling the vertical scaling use case with Elasticsearch horizontally scale model. Like, one node one path, we won't be able keep existing functionality of adding drives and keep scaling the server vertically.

Anyways, you guys are too prompt in answering and clarifying my doubts!

---

<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: [May 31, 2021, 5:58pm UTC](https://discuss.elastic.co/t/disk-threshold/271414/8 "2021-05-31T17:58:18Z")

</div>

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