弹性搜索总索引大小

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了弹性搜索总索引大小相关的知识,希望对你有一定的参考价值。

我试图在elasticsearch中获得索引(而不是商店)的实际大小。我使用indices API来获取统计数据。

GET doc/_stats

是“索引” - “index_total”实际索引大小?

"total": {
      "docs": {
        "count": 1000000,
        "deleted": 0
      },
      "store": {
        "size_in_bytes": 118078896
      },
      "indexing": {
        "index_total": 1000000,
        "index_time_in_millis": 30985,
        "index_current": 0,
        "index_failed": 0,
        "delete_total": 0,
        "delete_time_in_millis": 0,
        "delete_current": 0,
        "noop_update_total": 0,
        "is_throttled": false,
        "throttle_time_in_millis": 0
      },
答案

您可以使用此命令获取所有索引大小,单独显示

curl '192.168.x.x:9200/_cat/indices?v'

以上是关于弹性搜索总索引大小的主要内容,如果未能解决你的问题,请参考以下文章