Does the "size_in_bytes" value returned from _stats include replicas or is it just primary data?
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 } } } } }
Thanks. I missed the total section.