es節點所在的磁盤空間不夠用的時候,es會將改節點上面的索引標位只讀,不能向改索引寫入數據,默認當磁盤空間超過85%,我們可以使用下面的命令調整磁盤空間比例為95%
[2020-12-02T10:23:24,775][WARN ][o.e.c.r.a.DiskThresholdMonitor] [Nii770G] flood stage disk watermark [95%] exceeded on [Nii770GyRDC4Xu99SOLKJw][Nii770G][C:\ELK\elasticsearch-6.2.4\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