[英]Where the scan copy is stored and maximum how much time it can be alive if I do Elastic Search with scroll and scan
[英]How do i know how much data is stored in my Elastic search?
我想知道我的 Elastic 搜索中存儲了多少數據。
我正在探索集群統計信息 API。
https://www.elastic.co/guide/en/elasticsearch/reference/7.9/cluster-stats.html "store" -> size_in_bytes, 顯示存儲數據的大小?
是的,使用 Cluster stats size_in_bytes
,'store' 中的 size_in_bytes 表示分配給選定節點的所有分片的總大小(以字節為單位)。
統計信息也可以以適合人類的格式返回,在請求中添加human=true
,例如:
http://localhost:9200/_cluster/stats?human=true
"store": {
"size": "93.7mb",
"size_in_bytes": 98292482,
"total_data_set_size": "93.7mb",
"total_data_set_size_in_bytes": 98292482,
"reserved": "0b",
"reserved_in_bytes": 0
},
您還可以使用cat allocation API來獲取每個節點的已用和可用磁盤空間以及節點分片 ( disk.indices
) 使用的磁盤空間:
http://localhost:9200/_cat/allocation?v
如果您有興趣了解集群中每個索引的存儲大小,可以使用cat 索引 API :
http://localhost:9200/_cat/indices?v
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.