# Cluster Stats Total On Disk Storage Used

**URL:** https://discuss.elastic.co/t/cluster-stats-total-on-disk-storage-used/41207
**Category:** Elasticsearch
**Created:** [February 8, 2016, 4:49pm UTC](https://discuss.elastic.co/t/cluster-stats-total-on-disk-storage-used/41207 "2016-02-08T16:49:22Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![texlnghorn](https://avatars.discourse-cdn.com/v4/letter/t/ecc23a/32.png) [@texlnghorn](https://discuss.elastic.co/u/texlnghorn)
#### Post date: [February 8, 2016, 4:49pm UTC](https://discuss.elastic.co/t/cluster-stats-total-on-disk-storage-used/41207/1 "2016-02-08T16:49:23Z")

</div>

I'm trying to figure out the total on disk storage used by my cluster. The cluster stats api provides the indices store size\_in\_bytes as well as nodes fs total and free metrics. I think I'm more concerned with the nodes file system metrics (fs) so in my case I'd take the file system total and subtract the available to get the total disk space being used. Does that sound right? So what is the indices store size\_in\_bytes metric?

{  
timestamp: 1454948431251,  
cluster\_name: "escluster",  
status: "green",  
indices: {  
count: 21,  
shards: {  
total: 1122,  
primaries: 194,  
replication: 4.783505154639175,  
index: {  
shards: {  
min: 3,  
max: 60,  
avg: 53.42857142857143  
},  
primaries: {  
min: 1,  
max: 10,  
avg: 9.238095238095237  
},  
replication: {  
min: 2,  
max: 5,  
avg: 4.571428571428571  
}  
}  
},  
docs: {  
count: 468870065,  
deleted: 125997931  
},  
store: {  
size: "1.8tb",  
size\_in\_bytes: 1990473179532,  
throttle\_time: "9.8d",  
throttle\_time\_in\_millis: 853595965  
},  
fielddata: {  
memory\_size: "11.7gb",  
memory\_size\_in\_bytes: 12661159396,  
evictions: 0  
},  
filter\_cache: {  
memory\_size: "5.4gb",  
memory\_size\_in\_bytes: 5807821648,  
evictions: 0  
},  
id\_cache: {  
memory\_size: "0b",  
memory\_size\_in\_bytes: 0  
},  
completion: {  
size: "0b",  
size\_in\_bytes: 0  
},  
segments: {  
count: 16096,  
memory: "19.1gb",  
memory\_in\_bytes: 20578612072,  
index\_writer\_memory: "23.2mb",  
index\_writer\_memory\_in\_bytes: 24406829,  
index\_writer\_max\_memory: "80.7gb",  
index\_writer\_max\_memory\_in\_bytes: 86663689921,  
version\_map\_memory: "2.7mb",  
version\_map\_memory\_in\_bytes: 2850952,  
fixed\_bit\_set: "4.5gb",  
fixed\_bit\_set\_memory\_in\_bytes: 4845908496  
},  
percolate: {  
total: 0,  
get\_time: "0s",  
time\_in\_millis: 0,  
current: 0,  
memory\_size\_in\_bytes: -1,  
memory\_size: "-1b",  
queries: 0  
}  
},  
nodes: {  
count: {  
total: 17,  
master\_only: 3,  
data\_only: 14,  
master\_data: 0,  
client: 0  
},  
versions: [  
"1.7.2"  
],  
os: {  
available\_processors: 720,  
mem: {  
total: "4.1tb",  
total\_in\_bytes: 4569933668352  
},  
cpu: [  
{  
vendor: "Intel",  
model: "Xeon",  
mhz: 2500,  
total\_cores: 40,  
total\_sockets: 1,  
cores\_per\_socket: 32,  
cache\_size: "25kb",  
cache\_size\_in\_bytes: 25600,  
count: 17  
}  
]  
},  
process: {  
cpu: {  
percent: 1772  
},  
open\_file\_descriptors: {  
min: 1180,  
max: 4698,  
avg: 3987  
}  
},  
jvm: {  
max\_uptime: "94.9d",  
max\_uptime\_in\_millis: 8201602618,  
versions: [  
{  
version: "1.8.0\_40",  
vm\_name: "Java HotSpot(TM) 64-Bit Server VM",  
vm\_version: "25.40-b25",  
vm\_vendor: "Oracle Corporation",  
count: 17  
}  
],  
mem: {  
heap\_used: "151.8gb",  
heap\_used\_in\_bytes: 163032033888,  
heap\_max: "428.2gb",  
heap\_max\_in\_bytes: 459789631488  
},  
threads: 15100  
},  
fs: {  
total: "23.3tb",  
total\_in\_bytes: 25668544499712,  
free: "16.3tb",  
free\_in\_bytes: 18019465801728,  
available: "15.2tb",  
available\_in\_bytes: 16715538493440,  
disk\_reads: 3651846331,  
disk\_writes: 683952779384,  
disk\_io\_op: 687604625715,  
disk\_read\_size: "81.4tb",  
disk\_read\_size\_in\_bytes: 89555096878080,  
disk\_write\_size: "2.4pb",  
disk\_write\_size\_in\_bytes: 2800925002510336,  
disk\_io\_size: "2.5pb",  
disk\_io\_size\_in\_bytes: 2890480099388416,  
disk\_queue: "0",  
disk\_service\_time: "1"  
},  
plugins: [  
{  
name: "head",  
version: "NA",  
description: "No description found.",  
url: "/\_plugin/head/",  
jvm: false,  
site: true  
},  
{  
name: "bigdesk",  
version: "NA",  
description: "No description found.",  
url: "/\_plugin/bigdesk/",  
jvm: false,  
site: true  
},  
{  
name: "marvel",  
version: "1.3.0",  
description: "Elasticsearch Management & Monitoring",  
url: "/\_plugin/marvel/",  
jvm: true,  
site: true  
},  
{  
name: "reindex",  
version: "NA",  
description: "ReIndex Plugin",  
jvm: true,  
site: false  
},  
{  
name: "HQ",  
version: "NA",  
description: "No description found.",  
url: "/\_plugin/HQ/",  
jvm: false,  
site: true  
}  
]  
}  
}

---

<div class="post-metadata">

### Author: ![abeyad](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@abeyad](https://discuss.elastic.co/u/abeyad)
#### Post date: [February 9, 2016, 6:48am UTC](https://discuss.elastic.co/t/cluster-stats-total-on-disk-storage-used/41207/2 "2016-02-09T06:48:43Z")

</div>

That's correct, the total minus the free space. The free space is the amount of free space on the disk, whereas the available space is the amount of that disk space available to the JVM.

The size\_in\_bytes for the indices store is the size of the actual Lucene on-disk segments that represents the search index, which is but part of all total storage Elasticsearch uses to accomplish searches / aggregations.

---

<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: [July 5, 2017, 11:18pm UTC](https://discuss.elastic.co/t/cluster-stats-total-on-disk-storage-used/41207/3 "2017-07-05T23:18:04Z")

</div>


