原因一:
ElasticSearch入“只读”模式,只允许删除。当ES数据所在目录磁盘空间使用率超过90%后,ES将修改为只读状态,所以初步判断是磁盘空间不足导致es自动关闭了索引的写功能,只能进行读取或者删除。
解决:
-
手动将 index.blocks.read_only_allow_delete 改成false
-
查看index.blocks.read_only_allow_delete状态
ip:9200/索引名/_settings?/_settings?pretty (GET)
3. 修改index.blocks.read_only_allow_delete状态
ip:9200/索引名/_settings?pretty (PUT)文章来源:https://uudwc.com/A/4r1dM
{
"index.blocks.read_only_allow_delete": null
}
文章来源地址https://uudwc.com/A/4r1dM