es磁盘使用水位线检查调整

前置,突然发现kibana无法使用了
image
,随后就无法登录kibana了

检查:
因为这里看的错误信息和磁盘有关,于是检查磁盘使用情况
发现才到75左右
image

所以只能想到是不是默认配置的磁盘水位线导致
disk usage exceeded flood-stage watermark
的告警和相关的现象
这里就检查水位线配置然后做相应的调整
检查:
命令:

curl -X GET "http://localhost:9200/_cluster/settings?flat_settings=true&pretty" | grep watermark

image

调整:
命令:

curl -X PUT "http://localhost:9200/_cluster/settings" \
-H "Content-Type: application/json" \
-d '{
  "persistent": {
    "cluster.routing.allocation.disk.watermark.low": "85%",
    "cluster.routing.allocation.disk.watermark.high": "90%", 
    "cluster.routing.allocation.disk.watermark.flood_stage": "95%",
    "cluster.routing.allocation.disk.threshold_enabled": true
  }
}'

image

之后再回到kibana节点重启kibana
检查端口,登录kibana
image

解决问题

posted @ 2026-01-14 10:22  Unfool  阅读(5)  评论(0)    收藏  举报