【Elasticsearch】elasticsearch 磁盘相关常用配置

在这里插入图片描述

“cluster.routing.allocation.disk.threshold_enabled” : false

cluster.routing.allocation.disk.watermark.low:控制磁盘使用的低水位。默认为85%,意味着如果节点磁盘使用超过85%,则ES不允许在分配新的分片。

cluster.routing.allocation.disk.watermark.high:控制磁盘使用的高水位。默认为90%,意味着如果磁盘空间使用高于90%时,ES将尝试分配分片到其他节点。

上述两个配置可以使用API动态更新,ES每隔30s获取一次磁盘的使用信息,该值可以通过cluster.info.update.interval来设置。

curl -XPUT ‘http://192.168.0.1:9200/_cluster/settings’ -d’ {“persistent” : {“cluster.routing.allocation.disk.watermark.low” : “90%”, “cluster.routing.allocation.disk.watermark.high” : “95%”} }’

猜你喜欢

转载自blog.csdn.net/qq_21383435/article/details/108988014