所有碎片都失败了 [英] All shards failed
问题描述
我正在进行弹性搜索,并且运行良好。今天,我刚刚重新启动了远程服务器(Ubuntu)。现在,我正在索引中搜索。
I was working on elastic search and it was working perfectly. Today I just restarted my remote server (Ubuntu). Now I am searching in my indexes, it is giving me this error.
{"error":"SearchPhaseExecutionException[Failed to execute phase [query_fetch], all shards failed]","status":503}
我还检查了健康。状态为红色。谁能告诉我问题是什么。
I also checked the health. The status is red. Can anyone tell me what's the issue.
推荐答案
重新启动时可能无法恢复某些分片,从而导致群集保持红色。
如果您点击:
http://< yourhost>:9200 / _cluster / health /?level = shards
,则可以查找红色碎片。
It is possible on your restart some shards were not recovered, causing the cluster to stay red.
If you hit:
http://<yourhost>:9200/_cluster/health/?level=shards
you can look for red shards.
我在重新启动时遇到了问题,即分片最终处于不可恢复的状态。我的解决方案是简单地完全删除该索引。对于每个人来说,这都不是理想的解决方案。
I have had issues on restart where shards end up in a non recoverable state. My solution was to simply delete that index completely. That is not an ideal solution for everyone.
使用类似这样的插件来可视化这样的问题也很不错:
Elasticsearch头
It is also nice to visualize issues like this with a plugin like:
Elasticsearch Head
这篇关于所有碎片都失败了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!