es创建的索引状态一直是red
前言
这是我在这个网站整理的笔记,有错误的地方请指出,关注我,接下来还会持续更新。
作者:神的孩子都在歌唱
今天使用elasticsearch api创建索引的时候遇到一个奇怪的问题,就是索引能够创建成功,可是状态是red,也就是没法使用,之前创建过得索引就能正常使用,这就很奇怪,然后去查看了es的日志,发现了以下问题
{"@timestamp":"2024-10-30T07:32:45.931Z", "log.level": "WARN", "message":"high disk watermark [90%] exceeded on [RymlKAp-QjSvsoMoGD3PHQ][98c9c510598f][/usr/share/elasticsearch/data] free: 9.1gb[9.1%], shards will be relocated away from this node; currently relocating away shards totalling [0] bytes; the node is expected to continue to exceed the high disk watermark when these relocations are complete", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"elasticsearch[98c9c510598f][masterService#updateTask][T#1]","log.logger":"org.elasticsearch.cluster.routing.allocation.DiskThresholdMonitor","elasticsearch.cluster.uuid":"95bMrHZbRuyz79UOgQ0P_Q","elasticsearch.node.id":"RymlKAp-QjSvsoMoGD3PHQ","elasticsearch.node.name":"98c9c510598f","elasticsearch.cluster.name":"elasticsearch"}
问题描述是因为我磁盘超过了90%,他不会在进行分片,所以只需要把磁盘减低就可以正常使用了
作者:神的孩子都在歌唱
本人博客:https://blog.csdn.net/weixin_46654114
转载说明:务必注明来源,附带本人博客连接。