What does size_in_bytes include?


(Pat Humphreys) #1

Does the "size_in_bytes" value returned from _stats include replicas or is it just primary data?


(Tanguy) #2

Hi,

If you're talking about Indices Stats API then it is usually reported in total (both primary & replica shards) and primaries (primary shards only):

GET /_stats?filter_path=**.size_in_bytes { "_all" : { "primaries" : { "store" : { "size_in_bytes" : 130 }, "completion" : { "size_in_bytes" : 0 }, "translog" : { "size_in_bytes" : 43 } }, "total" : { "store" : { "size_in_bytes" : 130 }, "completion" : { "size_in_bytes" : 0 }, "translog" : { "size_in_bytes" : 43 } } }, "indices" : { "books" : { "primaries" : { "store" : { "size_in_bytes" : 130 }, "completion" : { "size_in_bytes" : 0 }, "translog" : { "size_in_bytes" : 43 } }, "total" : { "store" : { "size_in_bytes" : 130 }, "completion" : { "size_in_bytes" : 0 }, "translog" : { "size_in_bytes" : 43 } } } } }


(Pat Humphreys) #3

Thanks. I missed the total section.


(system) #4