如何计算Elasticsearch索引大小? [英] How to calculate elasticsearch index size?

查看:149
本文介绍了如何计算Elasticsearch索引大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个从2020年12月26日到2021年1月28日的基于时间的索引(log-nginx-2021.01.28),每个索引的大小约为4.5 mb,这些索引有3个主分区和1个副本分区,总共6个分区,所以我的问题是包括副本的索引大小也为4.5 mb吗?

解决方案

,您可以使用 _cat/indices?v API,该API打印总索引大小和主碎片的总大小.

如果您可以提供Above API的输出来显示有问题的索引,我们可以确认其总索引大小或所有主要分片的大小.

I have time-based indices(log-nginx-2021.01.28) from 26th December 2020 to jan 28th January 2021 each index size is around 4.5 mb and these indices have 3 primary and 1 replica shard total 6 shards so my question is the index size 4.5 mb including replica also?

解决方案

you can use the _cat/indices?v API, which prints the total index size and total size of primary shards.

if you can provide the output of Above API which shows your index in question, we can confirm its a total index size or size of all primary shards.

这篇关于如何计算Elasticsearch索引大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆