# Elasticsearch index size is less than it takes on disk

**URL:** <https://discuss.elastic.co/t/elasticsearch-index-size-is-less-than-it-takes-on-disk/106023>\
**Category:** Elasticsearch\
**Created:** [November 1, 2017, 11:27am UTC](https://discuss.elastic.co/t/elasticsearch-index-size-is-less-than-it-takes-on-disk/106023 "2017-11-01T11:27:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tobymaro](https://avatars.discourse-cdn.com/v4/letter/t/c77e96/32.png) [@Tobymaro](https://discuss.elastic.co/u/Tobymaro)\
**Post date:** [November 1, 2017, 11:27am UTC](https://discuss.elastic.co/t/elasticsearch-index-size-is-less-than-it-takes-on-disk/106023/1 "2017-11-01T11:27:09Z")

</div>

Hello,

I noticed strange issue with disk space consumption. I checked how much space my indexes take:

GET \_cat/indices/\*?v&s=store.size

Than I calculated total size (ofcoure store.size) it's about 1250 GB. Then I checked system information:

GET \_cat/allocation?v

shards disk.indices disk.used disk.avail disk.total disk.percent  
2030 1.5tb 1.6tb 272.1gb 1.9tb 86  
2030 1.5tb 1.6tb 271.7gb 1.9tb 86

Also I cheked disk size with "du" command and get the same result 1.6 TB used per node.

This is dedicated drive for elasticsearch only. There is only elasticsearch information, I mean only /nodes directory.

So my qestion is - why Lucene indexes take 3 times more space than Elasticsearch indexes.

I hope I provided clear explanation of my issue.

---

<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:** [November 1, 2017, 11:54am UTC](https://discuss.elastic.co/t/elasticsearch-index-size-is-less-than-it-takes-on-disk/106023/2 "2017-11-01T11:54:13Z")

</div>

> [@Tobymaro](#):
>
> why Lucene indexes take 3 times more space than Elasticsearch indexes

How did you arrive at this conclusion based on the data you provided? I am afraid I do not follow the calculation.

---

<div class="post-metadata">

**Author:** ![Tobymaro](https://avatars.discourse-cdn.com/v4/letter/t/c77e96/32.png) [@Tobymaro](https://discuss.elastic.co/u/Tobymaro)\
**Post date:** [November 1, 2017, 12:08pm UTC](https://discuss.elastic.co/t/elasticsearch-index-size-is-less-than-it-takes-on-disk/106023/3 "2017-11-01T12:08:17Z")

</div>

OK, I can explain.

I think its clear why elasticsearch indexes take 1250 GB.

Also I have 2 nodes - 2 TB per nodes.

So, since I see in elastic that total index size devided between 2 nodes is 1250 GB.  
And disk space consumed is about 3.2 TB (1.6 +1.6TB). So disk space usage is almost 3 times larger than elasticsearch indexes.

---

<div class="post-metadata">

**Author:** ![Tobymaro](https://avatars.discourse-cdn.com/v4/letter/t/c77e96/32.png) [@Tobymaro](https://discuss.elastic.co/u/Tobymaro)\
**Post date:** [November 9, 2017, 1:09pm UTC](https://discuss.elastic.co/t/elasticsearch-index-size-is-less-than-it-takes-on-disk/106023/4 "2017-11-09T13:09:48Z")

</div>

So, nobody knows why i have this behavior.  
=(

---

<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:** [December 7, 2017, 1:12pm UTC](https://discuss.elastic.co/t/elasticsearch-index-size-is-less-than-it-takes-on-disk/106023/5 "2017-12-07T13:12:38Z")

</div>

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