我有一个包含2个节点的集群,我添加了3个加入集群的节点。我可以向他们发送请求并获得结果。但是,当我检查他们没有任何文件。我有一个5分片索引,我希望每个节点都会收到一个分片?
{
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 :(得分:3)
感谢您的回复,问题是所有节点上的版本不同,现有成员有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]"
},
答案 1 :(得分:1)