# Elastic disk usage for a beginner

**URL:** <https://discuss.elastic.co/t/elastic-disk-usage-for-a-beginner/114306>\
**Category:** Elasticsearch\
**Created:** [January 5, 2018, 4:26pm UTC](https://discuss.elastic.co/t/elastic-disk-usage-for-a-beginner/114306 "2018-01-05T16:26:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![wweeder](https://avatars.discourse-cdn.com/v4/letter/w/c68b51/32.png) [@wweeder](https://discuss.elastic.co/u/wweeder)\
**Post date:** [January 5, 2018, 4:26pm UTC](https://discuss.elastic.co/t/elastic-disk-usage-for-a-beginner/114306/1 "2018-01-05T16:26:53Z")

</div>

Hello,

I have a very basic question but one which I haven't seen asked or answered directly.

Is elasticsearch disk usage intended to be infinite? apart from deleting indices or their data using a manual or manually created scripted process, is there no way to set a limit on how much disk space an index will use?

---

<div class="post-metadata">

**Author:** ![thiago](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thiago/32/32096_2.png) [@thiago](https://discuss.elastic.co/u/thiago)\
**Post date:** [January 6, 2018, 10:25pm UTC](https://discuss.elastic.co/t/elastic-disk-usage-for-a-beginner/114306/2 "2018-01-06T22:25:10Z")

</div>

Starting with version 6.0 you can set `cluster.routing.allocation.disk.watermark.flood_stage` (by default is `95%`) which will switch an index to readonly if the disk usage in which the shard is allocated goes above this setting.

---

<div class="post-metadata">

**Author:** ![wweeder](https://avatars.discourse-cdn.com/v4/letter/w/c68b51/32.png) [@wweeder](https://discuss.elastic.co/u/wweeder)\
**Post date:** [January 8, 2018, 8:29pm UTC](https://discuss.elastic.co/t/elastic-disk-usage-for-a-beginner/114306/3 "2018-01-08T20:29:26Z")

</div>

Thanks, so based on this I am inferring that users are intended to delete by query if they have a fixed disk size in mind for elasticsearch.

---

<div class="post-metadata">

**Author:** ![thiago](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thiago/32/32096_2.png) [@thiago](https://discuss.elastic.co/u/thiago)\
**Post date:** [January 8, 2018, 8:50pm UTC](https://discuss.elastic.co/t/elastic-disk-usage-for-a-beginner/114306/4 "2018-01-08T20:50:21Z")

</div>

Yes, but keep in mind that there is not sense of index size quota (i.e. indices can use as much as disk space is available to them). The referred setting is on node level, meaning that many shards can fall into the same disk of a single node and the setting will limit the disk usage as a total sum of all shard sizes so it won't set a hard limit on a per shard basis.

---

<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 5, 2018, 8:50pm UTC](https://discuss.elastic.co/t/elastic-disk-usage-for-a-beginner/114306/5 "2018-02-05T20:50:32Z")

</div>

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