一、排查思路:
找到对应的es服务器检查链接kibana服务器的配置,没有问题。检查磁盘空间,达到%94 。网上搜索资料发现es服务器磁盘达到%90以上就会被锁定为只读状态
二、查看ES状态
访问页面检查索引
blocks为只读:read_only_allow_delete “true”
http://IP地址:9200/_settings?pretty
三、扩容磁盘
根据阿里云在线扩容磁盘文档进行扩容
https://help.aliyun.com/document_detail/113316.html?spm=a2c4g.11186623.6.886.3f686c01jrJCZ5
四、解锁只读模式
[root@victory-es data_es]# curl -XPUT -H “Content-Type: application/json” http://IP:9200/_all/_settings -d ‘{“index.blocks.read_only_allow_delete”: null}’
五、检查ES状态
访问页面检查索引
read_only_allow_delete “true” 选项就没有了
http:// IP地址:9200/_settings?pretty
六、清理索引
查看索引
curl -XGET ‘http://127.0.0.1:9200/_cat/indices/?v’| awk ‘{print $3}’ | sort | head | grep xaas-app
清理索引 2021.03.[14-30]
curl -XDELETE [http://127.0.0.1:9200/xaas-app-2021.03.1-30]