2016-08-11 80 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]" 
      }, 
相关问题