gpt4 book ai didi

Elasticsearch 集群在添加节点后不重新平衡

转载 作者:行者123 更新时间:2023-12-02 22:16:52 25 4
gpt4 key购买 nike

我有一个包含 2 个节点的集群,我又添加了 3 个加入集群的节点。我能够向他们发送请求并获得结果。但是,当我检查时,他们没有任何文件。我有一个 5 分片索引,我期望每个节点都会收到一个分片?

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
}

最佳答案

感谢回复,问题是所有节点的版本不一样,现有成员有2.3.4,而新成员有2.3.3。

我通过这样做发现了这一点:

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

]
}

在回复中我在解释部分看到了这个

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

关于 Elasticsearch 集群在添加节点后不重新平衡,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38899902/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com