elasticsearch中有时会报只能读不能写入

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Areigninhell/article/details/85096273

遇见这个问题多半是磁盘空间不足,可以通过一下操作可解决。

#修改集群报警阈值
PUT _cluster/settings
   {
	  "transient": {
	     "cluster.routing.allocation.disk.watermark.low": "3gb",
	  "cluster.routing.allocation.disk.watermark.high": "1gb",
	  "cluster.routing.allocation.disk.watermark.flood_stage": "1gb",
	  "cluster.info.update.interval": "1m"
	     }
   }
# 添加写权限
PUT _settings
{
"index": {
"blocks": {
"read_only_allow_delete": "false"
        }
    }
}

猜你喜欢

转载自blog.csdn.net/Areigninhell/article/details/85096273
今日推荐