簡體   English   中英

Elasticsearch 在 Azure VM 上具有多個節點的集群上的所有分片都失敗

[英]Elasticsearch All Shards failed on cluster with multiple nodes on Azure VM

我有 Elasticsearch 集群,其中 3 個主節點、2 個數據節點和集群節點部署在 Azure 的不同虛擬機上。 它工作正常,但突然失敗,現在[search_phase_execution_exception] all shards failed錯誤。 總共有 200 多個索引,全部為紅色狀態。 以下是整個集群的健康狀況

"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

可能的解決方案是什么? 幫助將不勝感激。

可能由於某種原因節點已關閉,或者節點中的一些索引已損壞。 首先,找出有問題的節點。

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

上面的命令會給你紅色節點。 然后 go 到那個節點,嘗試重啟或者列出那個節點的所有索引,找到哪個是紅色的。 刪除該索引並再次搜索。 Lucene 將在之后點擊搜索時負責重新索引。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM