Note that there are some explanatory texts on larger screens.

plurals
  1. POSize of an index on the file system in elasticsearch
    primarykey
    data
    text
    <p>I have a very simple setup consisting of one elasticsearch 0.90.2 running in a Ubuntu 13.04 64-bit system.</p> <p>Using <code>_status</code>, this is the information of one of my indexes:</p> <pre><code> "edge":{ "index":{ "primary_size":"63.6kb", "primary_size_in_bytes":65127, "size":"63.6kb", "size_in_bytes":65127 }, "translog":{ "operations":0 }, "docs":{ "num_docs":43, "max_doc":63, "deleted_docs":20 }, "merges":{ "current":0, "current_docs":0, "current_size":"0b", "current_size_in_bytes":0, "total":0, "total_time":"0s", "total_time_in_millis":0, "total_docs":0, "total_size":"0b", "total_size_in_bytes":0 }, "refresh":{ "total":20, "total_time":"241ms", "total_time_in_millis":241 }, "flush":{ "total":20, "total_time":"47ms", "total_time_in_millis":47 }, "shards":{ "0":[ { "routing":{ "state":"STARTED", "primary":true, "node":"bn6ndqXtQKGVDg5eWjo78Q", "relocating_node":null, "shard":0, "index":"edge" }, "state":"STARTED", "index":{ "size":"9.6kb", "size_in_bytes":9887 }, "translog":{ "id":1375245630892, "operations":0 }, "docs":{ "num_docs":8, "max_doc":12, "deleted_docs":4 }, "merges":{ "current":0, "current_docs":0, "current_size":"0b", "current_size_in_bytes":0, "total":0, "total_time":"0s", "total_time_in_millis":0, "total_docs":0, "total_size":"0b", "total_size_in_bytes":0 }, "refresh":{ "total":3, "total_time":"65ms", "total_time_in_millis":65 }, "flush":{ "total":4, "total_time":"11ms", "total_time_in_millis":11 } } ], "1":[ { "routing":{ "state":"STARTED", "primary":true, "node":"bn6ndqXtQKGVDg5eWjo78Q", "relocating_node":null, "shard":1, "index":"edge" }, "state":"STARTED", "index":{ "size":"9kb", "size_in_bytes":9284 }, "translog":{ "id":1375245630912, "operations":0 }, "docs":{ "num_docs":6, "max_doc":9, "deleted_docs":3 }, "merges":{ "current":0, "current_docs":0, "current_size":"0b", "current_size_in_bytes":0, "total":0, "total_time":"0s", "total_time_in_millis":0, "total_docs":0, "total_size":"0b", "total_size_in_bytes":0 }, "refresh":{ "total":3, "total_time":"32ms", "total_time_in_millis":32 }, "flush":{ "total":4, "total_time":"7ms", "total_time_in_millis":7 } } ], "2":[ { "routing":{ "state":"STARTED", "primary":true, "node":"bn6ndqXtQKGVDg5eWjo78Q", "relocating_node":null, "shard":2, "index":"edge" }, "state":"STARTED", "index":{ "size":"19kb", "size_in_bytes":19539 }, "translog":{ "id":1375245630990, "operations":0 }, "docs":{ "num_docs":11, "max_doc":16, "deleted_docs":5 }, "merges":{ "current":0, "current_docs":0, "current_size":"0b", "current_size_in_bytes":0, "total":0, "total_time":"0s", "total_time_in_millis":0, "total_docs":0, "total_size":"0b", "total_size_in_bytes":0 }, "refresh":{ "total":6, "total_time":"74ms", "total_time_in_millis":74 }, "flush":{ "total":4, "total_time":"12ms", "total_time_in_millis":12 } } ], "3":[ { "routing":{ "state":"STARTED", "primary":true, "node":"bn6ndqXtQKGVDg5eWjo78Q", "relocating_node":null, "shard":3, "index":"edge" }, "state":"STARTED", "index":{ "size":"15.6kb", "size_in_bytes":16049 }, "translog":{ "id":1375245631046, "operations":0 }, "docs":{ "num_docs":9, "max_doc":13, "deleted_docs":4 }, "merges":{ "current":0, "current_docs":0, "current_size":"0b", "current_size_in_bytes":0, "total":0, "total_time":"0s", "total_time_in_millis":0, "total_docs":0, "total_size":"0b", "total_size_in_bytes":0 }, "refresh":{ "total":5, "total_time":"43ms", "total_time_in_millis":43 }, "flush":{ "total":4, "total_time":"10ms", "total_time_in_millis":10 } } ], "4":[ { "routing":{ "state":"STARTED", "primary":true, "node":"bn6ndqXtQKGVDg5eWjo78Q", "relocating_node":null, "shard":4, "index":"edge" }, "state":"STARTED", "index":{ "size":"10.1kb", "size_in_bytes":10368 }, "translog":{ "id":1375245631130, "operations":0 }, "docs":{ "num_docs":9, "max_doc":13, "deleted_docs":4 }, "merges":{ "current":0, "current_docs":0, "current_size":"0b", "current_size_in_bytes":0, "total":0, "total_time":"0s", "total_time_in_millis":0, "total_docs":0, "total_size":"0b", "total_size_in_bytes":0 }, "refresh":{ "total":3, "total_time":"27ms", "total_time_in_millis":27 }, "flush":{ "total":4, "total_time":"7ms", "total_time_in_millis":7 } } ] } } </code></pre> <p>The total size of the index should be <code>63.6kb</code> from the response. </p> <p>However, if I check <code>/var/lib/elasticsearch/elasticsearch/nodes/0/indices/edge</code> using nautilus, the size is reported as <code>153.1kb</code>.</p> <p>Why is there such a big difference? How does elasticsearch calculate the size?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload