ES集群变只读状态:

修改index副本数报错 :index read-only / allow delete

原因是磁盘警告了,处理方法:

  1. 集群加节点扩容;
  2. 副本数降低;
  3. 其他:增加磁盘,删除数据;

 

现将只读打开:

服务器上操作如下:

curl -XPUT -H "Content-Type: application/json" http://localhost:9200/_all/_settings -d '{"index.blocks.read_only_allow_delete": null}'


Kibana在 Dev Tools中编写:

PUT _all/_settings
{
"index.blocks.read_only_allow_delete": null
}