Differences between index/_stats size and du -h size

Hi everyone!
I have a quick question:

I create random JSON files and send them to elasticsearch.
When I check the sizes of the files using du -h in my centos machine and when I check the stats in the _stats section I get major differences between the results.
for example:

file number --- du -h size ------ /_stats
100 --------------- 404 kb ---------- 297 kb
1000 ------------- 4096 kb -------- 1200 kb
3000 ------------- 12 MB ----------- 3.3 MB

Now is it reasonable that storing somthing in elastic is so much smaller than on linux machine?
Why is the gap is so big?

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