【Elasticsearch】elasticsearch 磁碟相關常用配置
阿新 • • 發佈:2020-10-10
“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%”} }’