ES存储最低磁盘警戒值修改

ES默认当存储使用超过90%后就无法正常工作,所以对于ES存储空间较大的需要修改最低警戒值:
curl -XPUT 192.168.195.135:9200/_cluster/settings -d ‘{“persistent”: {“cluster.routing.allocation.disk.watermark.low”: “95%”,
“cluster.routing.allocation.disk.watermark.high”: “95%”,”cluster.info.update.interval”: “1m”}}’

如果超过95%,执行时会报错执行失败,请添加参数”cluster.routing.allocation.disk.watermark.flood_stage”: “97%”

参考链接:https://blog.csdn.net/qq_21961907/article/details/100288441

cluster.routing.allocation.disk.threshold_enabled
默认开启,关闭之后,磁盘使用没有限制

cluster.routing.allocation.disk.watermark.low
集群默认值为15%,就不在该磁盘上新建shard了,但是由于线上磁盘比较大,导致15%还剩余很多容量,一般修改为bytes value ,如100g

cluster.routing.allocation.disk.watermark.high
默认90%,超过之后,不会移动分片到这台机器上,修改为50g

cluster.routing.allocation.disk.watermark.flood_stage
默认95%,超过之后,整个索引修改为只读,修改为10g
————————————————
版权声明:本文为CSDN博主「正义凛然的钢笔」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qq_21961907/article/details/100288441