2016-08-11 252 views
1

我有一個具有2個節點的羣集,我又添加了3個加入羣集的節點。我可以向他們發送請求並獲得結果。但是,當我檢查他們沒有任何文件。我有一個5碎片索引,我期待每個節點都會收到碎片?elasticsearch羣集添加節點後未重新平衡

3 new nodes have no documents

{ 
    cluster_name: "es-poc", 
    status: "green", 
    timed_out: false, 
    number_of_nodes: 5, 
    number_of_data_nodes: 5, 
    active_primary_shards: 5, 
    active_shards: 10, 
    relocating_shards: 0, 
    initializing_shards: 0, 
    unassigned_shards: 0, 
    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: 100 
} 
+0

我推測,再平衡由於一些錯誤而失敗的響應

POST _cluster/reroute?explain { "commands": [ { "move" : { "index" : "event4", "shard" : 0, "from_node" : "Toad", "to_node" : "Amelia Voght" } } ] } 

我發現了這一點做。爲了找出導致它的原因,我將爲新添加的節點之一啓用詳細日誌記錄,然後嘗試通過https://www.elastic.co/guide/en/elasticsearch/reference中的示例強制分配碎片/2.3/cluster-reroute.html – oldbam

回答

2

感謝您的回覆,問題是所有節點上的版本不一樣,現有成員的版本是2.3.4,而新成員的版本是2.3.3。在我看到這個在解釋部分

{ 
       "decider": "node_version", 
       "decision": "NO", 
       "explanation": "target node version [2.3.3] is older than source node version [2.3.4]" 
      },