我在 k8s 上安裝了 elasticsearch,其中 fluentd 每天都將資料與日志一起放入,平均索引大小約為 1GB,我昨天手動洗掉了超過一周的索引(我沒有任何洗掉策略),因為存盤接近最大值(我每個節點有 100 GB 的存盤空間)但是,由于某種原因,一個檔案夾仍然接近 70 GB,您知道為什么嗎?
[elasticsearch@elasticsearch-master-1 indices]$ c^C
[elasticsearch@elasticsearch-master-1 indices]$ du -hs * | sort -hh
48K 7GFwGZHoQ4uM8KCpLc-Oxg
48K W0A74hl-Qw-2dIpx65hXFA
60K BNKGjyyZRheQOKpF4jPRmw
64K 2oGMlHa9TOC5IAtG4E8N2A
64K 5SidHjfxS-yvghDJL2y7Ug
64K NpCZAg2_R0SItwTY4n7cKA
88K leZHbZpEQW6A6xWCgVZTJQ
116K lA7py6UYQpS6kMBAcD-ShQ
216K pXqc9yQYSfCnSyi8Zf3qCA
432K J0zWpVVoQr6AUZwzMDObtA
5.3M gJ-_TDd9Q4KZAqjrSnz3RA
41M sMjw45GHSgah5a0c7PH1oA
378M nR-A9ZnxQdGhnNP0Snadhg
451M bCEnvyh4RuKHMD2H0EbS_w
476M 4EhSvr21QROhgVjY8yExIg
502M p7o2nSSjQiyFDQr4S5XECQ
504M U98Y4gbqS5mBnQeu-uXZyg
530M ciE5Uy6wQ1272mECz0VBgg
553M qydbdCS4SpuI9ISA-LRisg
67G hJZCqt9OQ8yRsRBlLCiPYg
[elasticsearch@elasticsearch-master-1 indices]$ pwd
/usr/share/elasticsearch/data/nodes/0/indices
[elasticsearch@elasticsearch-master-1 indices]$ ```
uj5u.com熱心網友回復:
在檢查您發布的統計資料后,似乎cuplrit 是fluentd-2021-11-17索引。
{
"fluentd-2021-11-17": {
"uuid": "hJZCqt9OQ8yRsRBlLCiPYg",
"primaries": {
"store": {
"size": "66.5gb",
"size_in_bytes": 71466871581,
"total_data_set_size": "66.5gb",
"total_data_set_size_in_bytes": 71466871581,
"reserved": "0b",
"reserved_in_bytes": 0
}
},
"total": {
"store": {
"size": "133.2gb",
"size_in_bytes": 143041475223,
"total_data_set_size": "133.2gb",
"total_data_set_size_in_bytes": 143041475223,
"reserved": "0b",
"reserved_in_bytes": 0
}
}
}
}
您今天肯定遇到了比平時創建更多日志的事件。
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/365799.html
下一篇:logstash在第1行、第1列(位元組1)處應為[\\t\\r\\n]、\"#\"、\"input\"、\"filter\&
