【问题标题】:Elasticsearch All Shards failed on cluster with multiple nodes on Azure VMElasticsearch All Shards 在 Azure VM 上具有多个节点的集群上失败
【发布时间】:2020-07-20 10:58:06
【问题描述】:

我在 Azure 上的不同虚拟机上部署了具有 3 个主节点、2 个数据节点和集群节点的 Elasticsearch 集群。它工作正常,但突然失败,现在当我们尝试搜索任何数据时出现[search_phase_execution_exception] all shards failed 错误。 共有 200 多个索引,全部为 red 状态。 以下是整个集群的健康状况

"status": "red",
    "timed_out": false,
    "number_of_nodes": 6,
    "number_of_data_nodes": 2,
    "active_primary_shards": 5,
    "active_shards": 10,
    "relocating_shards": 0,
    "initializing_shards": 0,
    "unassigned_shards": 524,
    "delayed_unassigned_shards": 0,
    "number_of_pending_tasks": 0,
    "number_of_in_flight_fetch": 0,
    "task_max_waiting_in_queue_millis": 0,
    "active_shards_percent_as_number": 1.8726591760299627

对此有什么可能的解决方案? 帮助将不胜感激。

【问题讨论】:

    标签: azure elasticsearch azure-virtual-machine


    【解决方案1】:

    可能由于某种原因节点已关闭,或者节点中的一些索引已损坏。首先,找出问题节点。

    http://<yourhost>:9200/_cluster/health/?level=shards
    

    上面的命令会给你红色节点。然后到那个节点,尝试重启或者列出那个节点中的所有索引,找出哪个是红色的。删除该索引并再次搜索。 Lucene 会在之后搜索命中时负责重新索引。

    【讨论】:

      猜你喜欢
      • 2020-09-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-07-06
      • 2016-12-18
      • 2013-04-24
      • 2021-04-23
      • 2014-06-28
      相关资源
      最近更新 更多