elasticsearch 修改磁盤比例限制


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

  1. PUT /_cluster/settings
  2.  
    {
  3.  
    "transient": {
  4.  
    "cluster.routing.allocation.disk.watermark.low": "90%",
  5.  
    "cluster.routing.allocation.disk.watermark.high": "95%",
  6.  
    "cluster.info.update.interval": "1m"
  7.  
    }
  8.  
    }


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM