elasticsearch 解决unassigned shards问题

故障原因

优化elasticsearch配置,然后重启一个节点,发现集群状态是yellow,shards没有自动恢复。一直是unassigned 状态。

解决

超级有用的一条命令:


curl -XGET http://x.x.x.x:9261/_cluster/allocation/explain?pretty

会列出unassigned原因。

本次原因如下:


 "explanation" : "the node is above the low watermark cluster setting [cluster.routing.allocation.disk.watermark.low=85%], using more disk space than the maximum allowed [85.0%], actual free: [13.289905234962134%]"

妈的,磁盘空间不足。 so...

其他原因解决方法: 参考

0 0 投票数
Article Rating
订阅评论
提醒
guest
0 评论
最旧
最新 最多投票
内联反馈
查看所有评论
0
希望看到您的想法,请您发表评论x