我有一个具有2个节点的群集,我又添加了3个加入群集的节点。我可以向他们发送请求并获得结果。但是,当我检查他们没有任何文件。我有一个5碎片索引,我期待每个节点都会收到碎片?elasticsearch群集添加节点后未重新平衡
{
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
}
我推测,再平衡由于一些错误而失败的响应
:
我发现了这一点做。为了找出导致它的原因,我将为新添加的节点之一启用详细日志记录,然后尝试通过https://www.elastic.co/guide/en/elasticsearch/reference中的示例强制分配碎片/2.3/cluster-reroute.html – oldbam