TypechoJoeTheme

IT技术分享

统计

13. ES查询集群索引监控详细信息——ElasticSearch基础专栏

2022-09-13
/
0 评论
/
1,805 阅读
/
正在检测是否收录...
09/13

一、查询语句

GET _stats?pretty

二、返回值详解

{
  "_shards": {
    "total": 25,
    "successful": 25,
    "failed": 0
  },
  "_all": { // 此对象中包含索引的存储信息
    "primaries": {
      "docs": {
        "count": 59561, // 索引文档数
        "deleted": 106
      },
      "store": { // 索引存储信息
        "size_in_bytes": 9781036,
        "reserved_in_bytes": 0
      },
      "indexing": { // 索引操作信息
        "index_total": 7369, // 索引文档总数量
        "index_time_in_millis": 12856, // 索引使用总耗时
        "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
      },
      "get": { // 索引get请求信息
        "total": 2676, // get请求的数量
        "time_in_millis": 419, // get请求的总耗时
        "exists_total": 214,
        "exists_time_in_millis": 168,
        "missing_total": 2462,
        "missing_time_in_millis": 251,
        "current": 0
      },
      "search": { // 索引search请求信息
        "open_contexts": 0,
        "query_total": 8735, // search请求的总数量
        "query_time_in_millis": 4216, // search请求的总数量
        "query_current": 0,
        "fetch_total": 2132, // fetch请求的总数量
        "fetch_time_in_millis": 2732, // fetch请求的总耗时
        "fetch_current": 0,
        "scroll_total": 0,
        "scroll_time_in_millis": 0,
        "scroll_current": 0,
        "suggest_total": 0,
        "suggest_time_in_millis": 0,
        "suggest_current": 0
      },
      "merges": { // 索引数据合并信息
        "current": 0,
        "current_docs": 0,
        "current_size_in_bytes": 0,
        "total": 738,
        "total_time_in_millis": 10734,
        "total_docs": 242444,
        "total_size_in_bytes": 122734895,
        "total_stopped_time_in_millis": 0,
        "total_throttled_time_in_millis": 0,
        "total_auto_throttle_in_bytes": 524288000
      },
      "refresh": { // 索引refresh操作的相关信息
        "total": 31803, // refresh请求的总数量
        "total_time_in_millis": 63740, // refresh请求的总耗时
        "external_total": 29306,
        "external_total_time_in_millis": 68292,
        "listeners": 0
      },
      "flush": { // 索引flush操作的相关信息
        "total": 2511, // flush请求的总数量
        "periodic": 0,
        "total_time_in_millis": 71406 // flush请求的总耗时
      },
      "warmer": {
        "current": 0,
        "total": 10245,
        "total_time_in_millis": 1880
      },
      "query_cache": { // 索引的缓存使用情况
        "memory_size_in_bytes": 0,
        "total_count": 0,
        "hit_count": 0,
        "miss_count": 0,
        "cache_size": 0,
        "cache_count": 0,
        "evictions": 0
      },
      "fielddata": {
        "memory_size_in_bytes": 0,
        "evictions": 0
      },
      "completion": {
        "size_in_bytes": 0
      },
      "segments": {
        "count": 143,
        "memory_in_bytes": 1017828,
        "terms_memory_in_bytes": 678912,
        "stored_fields_memory_in_bytes": 71000,
        "term_vectors_memory_in_bytes": 0,
        "norms_memory_in_bytes": 84288,
        "points_memory_in_bytes": 0,
        "doc_values_memory_in_bytes": 183628,
        "index_writer_memory_in_bytes": 0,
        "version_map_memory_in_bytes": 0,
        "fixed_bit_set_memory_in_bytes": 24816,
        "max_unsafe_auto_id_timestamp": 1,
        "file_sizes": {

        }
      },
      "translog": { // 索引的translog信息
        "operations": 0,
        "size_in_bytes": 1375,
        "uncommitted_operations": 0,
        "uncommitted_size_in_bytes": 1375,
        "earliest_last_modified_age": 134036673
      },
      "request_cache": { // 请求操作的缓存信息
        "memory_size_in_bytes": 0,
        "evictions": 0,
        "hit_count": 0,
        "miss_count": 0
      },
      "recovery": {
        "current_as_source": 0,
        "current_as_target": 0,
        "throttle_time_in_millis": 0
      }
    },
    "total": {
      "docs": {
        "count": 59561,
        "deleted": 106
      },
      "store": {
        "size_in_bytes": 9781036,
        "reserved_in_bytes": 0
      },
      "indexing": {
        "index_total": 7369,
        "index_time_in_millis": 12856,
        "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
      },
      "get": {
        "total": 2676,
        "time_in_millis": 419,
        "exists_total": 214,
        "exists_time_in_millis": 168,
        "missing_total": 2462,
        "missing_time_in_millis": 251,
        "current": 0
      },
      "search": {
        "open_contexts": 0,
        "query_total": 8735,
        "query_time_in_millis": 4216,
        "query_current": 0,
        "fetch_total": 2132,
        "fetch_time_in_millis": 2732,
        "fetch_current": 0,
        "scroll_total": 0,
        "scroll_time_in_millis": 0,
        "scroll_current": 0,
        "suggest_total": 0,
        "suggest_time_in_millis": 0,
        "suggest_current": 0
      },
      "merges": {
        "current": 0,
        "current_docs": 0,
        "current_size_in_bytes": 0,
        "total": 738,
        "total_time_in_millis": 10734,
        "total_docs": 242444,
        "total_size_in_bytes": 122734895,
        "total_stopped_time_in_millis": 0,
        "total_throttled_time_in_millis": 0,
        "total_auto_throttle_in_bytes": 524288000
      },
      "refresh": {
        "total": 31803,
        "total_time_in_millis": 63740,
        "external_total": 29306,
        "external_total_time_in_millis": 68292,
        "listeners": 0
      },
      "flush": {
        "total": 2511,
        "periodic": 0,
        "total_time_in_millis": 71406
      },
      "warmer": {
        "current": 0,
        "total": 10245,
        "total_time_in_millis": 1880
      },
      "query_cache": {
        "memory_size_in_bytes": 0,
        "total_count": 0,
        "hit_count": 0,
        "miss_count": 0,
        "cache_size": 0,
        "cache_count": 0,
        "evictions": 0
      },
      "fielddata": {
        "memory_size_in_bytes": 0,
        "evictions": 0
      },
      "completion": {
        "size_in_bytes": 0
      },
      "segments": {
        "count": 143,
        "memory_in_bytes": 1017828,
        "terms_memory_in_bytes": 678912,
        "stored_fields_memory_in_bytes": 71000,
        "term_vectors_memory_in_bytes": 0,
        "norms_memory_in_bytes": 84288,
        "points_memory_in_bytes": 0,
        "doc_values_memory_in_bytes": 183628,
        "index_writer_memory_in_bytes": 0,
        "version_map_memory_in_bytes": 0,
        "fixed_bit_set_memory_in_bytes": 24816,
        "max_unsafe_auto_id_timestamp": 1,
        "file_sizes": {

        }
      },
      "translog": {
        "operations": 0,
        "size_in_bytes": 1375,
        "uncommitted_operations": 0,
        "uncommitted_size_in_bytes": 1375,
        "earliest_last_modified_age": 134036673
      },
      "request_cache": {
        "memory_size_in_bytes": 0,
        "evictions": 0,
        "hit_count": 0,
        "miss_count": 0
      },
      "recovery": {
        "current_as_source": 0,
        "current_as_target": 0,
        "throttle_time_in_millis": 0
      }
    }
  },
  "indices": {
    "reviewquality20220727": {
      "uuid": "909qeUucQwu0hu_bbaQ0Q",
      "primaries": {
        "docs": {
          "count": 57917,
          "deleted": 82
        },
        "store": {
          "size_in_bytes": 9254125,
          "reserved_in_bytes": 0
        },
        "indexing": {
          "index_total": 2526,
          "index_time_in_millis": 5981,
          "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
        },
        "get": {
          "total": 2676,
          "time_in_millis": 419,
          "exists_total": 214,
          "exists_time_in_millis": 168,
          "missing_total": 2462,
          "missing_time_in_millis": 251,
          "current": 0
        },
        "search": {
          "open_contexts": 0,
          "query_total": 4140,
          "query_time_in_millis": 2791,
          "query_current": 0,
          "fetch_total": 453,
          "fetch_time_in_millis": 988,
          "fetch_current": 0,
          "scroll_total": 0,
          "scroll_time_in_millis": 0,
          "scroll_current": 0,
          "suggest_total": 0,
          "suggest_time_in_millis": 0,
          "suggest_current": 0
        },
        "merges": {
          "current": 0,
          "current_docs": 0,
          "current_size_in_bytes": 0,
          "total": 239,
          "total_time_in_millis": 5977,
          "total_docs": 187609,
          "total_size_in_bytes": 68259508,
          "total_stopped_time_in_millis": 0,
          "total_throttled_time_in_millis": 0,
          "total_auto_throttle_in_bytes": 419430400
        },
        "refresh": {
          "total": 6524,
          "total_time_in_millis": 26479,
          "external_total": 4540,
          "external_total_time_in_millis": 28354,
          "listeners": 0
        },
        "flush": {
          "total": 1993,
          "periodic": 0,
          "total_time_in_millis": 57658
        },
        "warmer": {
          "current": 0,
          "total": 4520,
          "total_time_in_millis": 1695
        },
        "query_cache": {
          "memory_size_in_bytes": 0,
          "total_count": 0,
          "hit_count": 0,
          "miss_count": 0,
          "cache_size": 0,
          "cache_count": 0,
          "evictions": 0
        },
        "fielddata": {
          "memory_size_in_bytes": 0,
          "evictions": 0
        },
        "completion": {
          "size_in_bytes": 0
        },
        "segments": {
          "count": 116,
          "memory_in_bytes": 924336,
          "terms_memory_in_bytes": 617376,
          "stored_fields_memory_in_bytes": 57824,
          "term_vectors_memory_in_bytes": 0,
          "norms_memory_in_bytes": 82560,
          "points_memory_in_bytes": 0,
          "doc_values_memory_in_bytes": 166576,
          "index_writer_memory_in_bytes": 0,
          "version_map_memory_in_bytes": 0,
          "fixed_bit_set_memory_in_bytes": 24816,
          "max_unsafe_auto_id_timestamp": 1,
          "file_sizes": {

          }
        },
        "translog": {
          "operations": 0,
          "size_in_bytes": 1100,
          "uncommitted_operations": 0,
          "uncommitted_size_in_bytes": 1100,
          "earliest_last_modified_age": 134036673
        },
        "request_cache": {
          "memory_size_in_bytes": 0,
          "evictions": 0,
          "hit_count": 0,
          "miss_count": 0
        },
        "recovery": {
          "current_as_source": 0,
          "current_as_target": 0,
          "throttle_time_in_millis": 0
        }
      },
      "total": {
        "docs": {
          "count": 57917,
          "deleted": 82
        },
        "store": {
          "size_in_bytes": 9254125,
          "reserved_in_bytes": 0
        },
        "indexing": {
          "index_total": 2526,
          "index_time_in_millis": 5981,
          "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
        },
        "get": {
          "total": 2676,
          "time_in_millis": 419,
          "exists_total": 214,
          "exists_time_in_millis": 168,
          "missing_total": 2462,
          "missing_time_in_millis": 251,
          "current": 0
        },
        "search": {
          "open_contexts": 0,
          "query_total": 4140,
          "query_time_in_millis": 2791,
          "query_current": 0,
          "fetch_total": 453,
          "fetch_time_in_millis": 988,
          "fetch_current": 0,
          "scroll_total": 0,
          "scroll_time_in_millis": 0,
          "scroll_current": 0,
          "suggest_total": 0,
          "suggest_time_in_millis": 0,
          "suggest_current": 0
        },
        "merges": {
          "current": 0,
          "current_docs": 0,
          "current_size_in_bytes": 0,
          "total": 239,
          "total_time_in_millis": 5977,
          "total_docs": 187609,
          "total_size_in_bytes": 68259508,
          "total_stopped_time_in_millis": 0,
          "total_throttled_time_in_millis": 0,
          "total_auto_throttle_in_bytes": 419430400
        },
        "refresh": {
          "total": 6524,
          "total_time_in_millis": 26479,
          "external_total": 4540,
          "external_total_time_in_millis": 28354,
          "listeners": 0
        },
        "flush": {
          "total": 1993,
          "periodic": 0,
          "total_time_in_millis": 57658
        },
        "warmer": {
          "current": 0,
          "total": 4520,
          "total_time_in_millis": 1695
        },
        "query_cache": {
          "memory_size_in_bytes": 0,
          "total_count": 0,
          "hit_count": 0,
          "miss_count": 0,
          "cache_size": 0,
          "cache_count": 0,
          "evictions": 0
        },
        "fielddata": {
          "memory_size_in_bytes": 0,
          "evictions": 0
        },
        "completion": {
          "size_in_bytes": 0
        },
        "segments": {
          "count": 116,
          "memory_in_bytes": 924336,
          "terms_memory_in_bytes": 617376,
          "stored_fields_memory_in_bytes": 57824,
          "term_vectors_memory_in_bytes": 0,
          "norms_memory_in_bytes": 82560,
          "points_memory_in_bytes": 0,
          "doc_values_memory_in_bytes": 166576,
          "index_writer_memory_in_bytes": 0,
          "version_map_memory_in_bytes": 0,
          "fixed_bit_set_memory_in_bytes": 24816,
          "max_unsafe_auto_id_timestamp": 1,
          "file_sizes": {

          }
        },
        "translog": {
          "operations": 0,
          "size_in_bytes": 1100,
          "uncommitted_operations": 0,
          "uncommitted_size_in_bytes": 1100,
          "earliest_last_modified_age": 134036673
        },
        "request_cache": {
          "memory_size_in_bytes": 0,
          "evictions": 0,
          "hit_count": 0,
          "miss_count": 0
        },
        "recovery": {
          "current_as_source": 0,
          "current_as_target": 0,
          "throttle_time_in_millis": 0
        }
      }
    },
    "reviewkeyword20220615": {
      "uuid": "uDae5gPaQ7yz0SRuEzeWMQ",
      "primaries": {
        "docs": {
          "count": 1644,
          "deleted": 24
        },
        "store": {
          "size_in_bytes": 526911,
          "reserved_in_bytes": 0
        },
        "indexing": {
          "index_total": 4843,
          "index_time_in_millis": 6875,
          "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
        },
        "get": {
          "total": 0,
          "time_in_millis": 0,
          "exists_total": 0,
          "exists_time_in_millis": 0,
          "missing_total": 0,
          "missing_time_in_millis": 0,
          "current": 0
        },
        "search": {
          "open_contexts": 0,
          "query_total": 4595,
          "query_time_in_millis": 1425,
          "query_current": 0,
          "fetch_total": 1679,
          "fetch_time_in_millis": 1744,
          "fetch_current": 0,
          "scroll_total": 0,
          "scroll_time_in_millis": 0,
          "scroll_current": 0,
          "suggest_total": 0,
          "suggest_time_in_millis": 0,
          "suggest_current": 0
        },
        "merges": {
          "current": 0,
          "current_docs": 0,
          "current_size_in_bytes": 0,
          "total": 499,
          "total_time_in_millis": 4757,
          "total_docs": 54835,
          "total_size_in_bytes": 54475387,
          "total_stopped_time_in_millis": 0,
          "total_throttled_time_in_millis": 0,
          "total_auto_throttle_in_bytes": 104857600
        },
        "refresh": {
          "total": 25279,
          "total_time_in_millis": 37261,
          "external_total": 24766,
          "external_total_time_in_millis": 39938,
          "listeners": 0
        },
        "flush": {
          "total": 518,
          "periodic": 0,
          "total_time_in_millis": 13748
        },
        "warmer": {
          "current": 0,
          "total": 5725,
          "total_time_in_millis": 185
        },
        "query_cache": {
          "memory_size_in_bytes": 0,
          "total_count": 0,
          "hit_count": 0,
          "miss_count": 0,
          "cache_size": 0,
          "cache_count": 0,
          "evictions": 0
        },
        "fielddata": {
          "memory_size_in_bytes": 0,
          "evictions": 0
        },
        "completion": {
          "size_in_bytes": 0
        },
        "segments": {
          "count": 27,
          "memory_in_bytes": 93492,
          "terms_memory_in_bytes": 61536,
          "stored_fields_memory_in_bytes": 13176,
          "term_vectors_memory_in_bytes": 0,
          "norms_memory_in_bytes": 1728,
          "points_memory_in_bytes": 0,
          "doc_values_memory_in_bytes": 17052,
          "index_writer_memory_in_bytes": 0,
          "version_map_memory_in_bytes": 0,
          "fixed_bit_set_memory_in_bytes": 0,
          "max_unsafe_auto_id_timestamp": 1,
          "file_sizes": {

          }
        },
        "translog": {
          "operations": 0,
          "size_in_bytes": 275,
          "uncommitted_operations": 0,
          "uncommitted_size_in_bytes": 275,
          "earliest_last_modified_age": 8084648451
        },
        "request_cache": {
          "memory_size_in_bytes": 0,
          "evictions": 0,
          "hit_count": 0,
          "miss_count": 0
        },
        "recovery": {
          "current_as_source": 0,
          "current_as_target": 0,
          "throttle_time_in_millis": 0
        }
      },
      "total": {
        "docs": {
          "count": 1644,
          "deleted": 24
        },
        "store": {
          "size_in_bytes": 526911,
          "reserved_in_bytes": 0
        },
        "indexing": {
          "index_total": 4843,
          "index_time_in_millis": 6875,
          "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
        },
        "get": {
          "total": 0,
          "time_in_millis": 0,
          "exists_total": 0,
          "exists_time_in_millis": 0,
          "missing_total": 0,
          "missing_time_in_millis": 0,
          "current": 0
        },
        "search": {
          "open_contexts": 0,
          "query_total": 4595,
          "query_time_in_millis": 1425,
          "query_current": 0,
          "fetch_total": 1679,
          "fetch_time_in_millis": 1744,
          "fetch_current": 0,
          "scroll_total": 0,
          "scroll_time_in_millis": 0,
          "scroll_current": 0,
          "suggest_total": 0,
          "suggest_time_in_millis": 0,
          "suggest_current": 0
        },
        "merges": {
          "current": 0,
          "current_docs": 0,
          "current_size_in_bytes": 0,
          "total": 499,
          "total_time_in_millis": 4757,
          "total_docs": 54835,
          "total_size_in_bytes": 54475387,
          "total_stopped_time_in_millis": 0,
          "total_throttled_time_in_millis": 0,
          "total_auto_throttle_in_bytes": 104857600
        },
        "refresh": {
          "total": 25279,
          "total_time_in_millis": 37261,
          "external_total": 24766,
          "external_total_time_in_millis": 39938,
          "listeners": 0
        },
        "flush": {
          "total": 518,
          "periodic": 0,
          "total_time_in_millis": 13748
        },
        "warmer": {
          "current": 0,
          "total": 5725,
          "total_time_in_millis": 185
        },
        "query_cache": {
          "memory_size_in_bytes": 0,
          "total_count": 0,
          "hit_count": 0,
          "miss_count": 0,
          "cache_size": 0,
          "cache_count": 0,
          "evictions": 0
        },
        "fielddata": {
          "memory_size_in_bytes": 0,
          "evictions": 0
        },
        "completion": {
          "size_in_bytes": 0
        },
        "segments": {
          "count": 27,
          "memory_in_bytes": 93492,
          "terms_memory_in_bytes": 61536,
          "stored_fields_memory_in_bytes": 13176,
          "term_vectors_memory_in_bytes": 0,
          "norms_memory_in_bytes": 1728,
          "points_memory_in_bytes": 0,
          "doc_values_memory_in_bytes": 17052,
          "index_writer_memory_in_bytes": 0,
          "version_map_memory_in_bytes": 0,
          "fixed_bit_set_memory_in_bytes": 0,
          "max_unsafe_auto_id_timestamp": 1,
          "file_sizes": {

          }
        },
        "translog": {
          "operations": 0,
          "size_in_bytes": 275,
          "uncommitted_operations": 0,
          "uncommitted_size_in_bytes": 275,
          "earliest_last_modified_age": 8084648451
        },
        "request_cache": {
          "memory_size_in_bytes": 0,
          "evictions": 0,
          "hit_count": 0,
          "miss_count": 0
        },
        "recovery": {
          "current_as_source": 0,
          "current_as_target": 0,
          "throttle_time_in_millis": 0
        }
      }
    }
  }
}
朗读
赞 · 0
版权属于:

IT技术分享

本文链接:

https://idunso.com/archives/2894/(转载时请注明本文出处及文章链接)