es-解除硬盘超过80%限制
2022-10-14 本文已影响0人
李哈哈_2c85
es节点所在的磁盘空间不够用的时候,es会将改节点上面的索引标位只读,不能向改索引写入数据,默认当磁盘空间超过85%,我们可以使用下面的命令调整磁盘空间比例为95%
[WARN ][o.e.c.r.a.DiskThresholdMonitor] [Nii770G] flood stage disk watermark [95%] exceeded on [Nii770GyRDC4Xu99SOLKJw][Nii770G][C:\elasticsearch-6.2.4\data\nodes\0] free: 2.5gb[3.1%], all indices on this node will marked read-only
PUT /_cluster/settings
{
"transient": {
"cluster.routing.allocation.disk.watermark.low": "90%",
"cluster.routing.allocation.disk.watermark.high": "95%",
"cluster.info.update.interval": "1m"
}
}
persistent表示为永久修改,重启以后也会保存设置
transient表示临时修改,重启以后不会保存设置
"cluster.info.update.interval": "1m" #时间间隔 现在是1分钟,默认是30s
配置文件永久修改
#解除硬盘限制超过80%无法创建索引
cluster.routing.allocation.disk.threshold_enabled: false