# Regarding cluster.routing.allocation.disk.include\_relocations

**URL:** <https://discuss.elastic.co/t/regarding-cluster-routing-allocation-disk-include-relocations/110255>\
**Category:** Elasticsearch\
**Created:** [December 5, 2017, 6:09am UTC](https://discuss.elastic.co/t/regarding-cluster-routing-allocation-disk-include-relocations/110255 "2017-12-05T06:09:15Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![akshaymaniyar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akshaymaniyar/32/45836_2.png) [@akshaymaniyar](https://discuss.elastic.co/u/akshaymaniyar)\
**Post date:** [December 5, 2017, 6:09am UTC](https://discuss.elastic.co/t/regarding-cluster-routing-allocation-disk-include-relocations/110255/1 "2017-12-05T06:09:15Z")

</div>

Hi,

I have a confusion regarding the setting

cluster.routing.allocation.disk.include\_relocations =\> Defaults to true, which means that Elasticsearch will take into account shards that are currently being relocated to the target node when computing a node’s disk usage. Taking relocating shards' sizes into account may, however, mean that the disk usage for a node is incorrectly estimated on the high side, since the relocation could be 90% complete and a recently retrieved disk usage would include the total size of the relocating shard as well as the space already used by the running relocation.

So if I have 100 gb disk and I have set the high watermark as 90% which means after 90GB shards will be reallocated. Now let us say the current disk usage is 80GB and I give a command to migrate a 7GB shard to this node. When 5GB of the shard is transferred, the disk usage will be calculated as follows: 80GB (Existing) + 5GB(transferred) + 7GB (entire size of the shard being transferred) = 92GB. Does that mean at this stage ES will start relocating some other index from this shard, since it has breached the high watermark?

---

<div class="post-metadata">

**Author:** ![akshaymaniyar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akshaymaniyar/32/45836_2.png) [@akshaymaniyar](https://discuss.elastic.co/u/akshaymaniyar)\
**Post date:** [December 6, 2017, 7:16am UTC](https://discuss.elastic.co/t/regarding-cluster-routing-allocation-disk-include-relocations/110255/2 "2017-12-06T07:16:17Z")

</div>

Anyone who'll be able to help in clearing this?

---

<div class="post-metadata">

**Author:** ![akshaymaniyar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akshaymaniyar/32/45836_2.png) [@akshaymaniyar](https://discuss.elastic.co/u/akshaymaniyar)\
**Post date:** [December 11, 2017, 8:52am UTC](https://discuss.elastic.co/t/regarding-cluster-routing-allocation-disk-include-relocations/110255/3 "2017-12-11T08:52:29Z")

</div>

_BUMP_

---

<div class="post-metadata">

**Author:** ![akshaymaniyar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akshaymaniyar/32/45836_2.png) [@akshaymaniyar](https://discuss.elastic.co/u/akshaymaniyar)\
**Post date:** [December 11, 2017, 10:10pm UTC](https://discuss.elastic.co/t/regarding-cluster-routing-allocation-disk-include-relocations/110255/4 "2017-12-11T22:10:33Z")

</div>

@dadoonet: Sorry for tagging you here. But can you please answer this if possible?

---

<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:** [December 20, 2017, 10:33am UTC](https://discuss.elastic.co/t/regarding-cluster-routing-allocation-disk-include-relocations/110255/5 "2017-12-20T10:33:08Z")

</div>

I don't have the answer sorry. May be @dakrone can help.

---

<div class="post-metadata">

**Author:** ![akshaymaniyar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akshaymaniyar/32/45836_2.png) [@akshaymaniyar](https://discuss.elastic.co/u/akshaymaniyar)\
**Post date:** [January 4, 2018, 4:10pm UTC](https://discuss.elastic.co/t/regarding-cluster-routing-allocation-disk-include-relocations/110255/6 "2018-01-04T16:10:39Z")

</div>

@dakrone: Request you to help if possible.

---

<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 1, 2018, 4:10pm UTC](https://discuss.elastic.co/t/regarding-cluster-routing-allocation-disk-include-relocations/110255/7 "2018-02-01T16:10:56Z")

</div>

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