【发布时间】:2014-07-02 14:45:44
【问题描述】:
我的集群处于黄色状态,因为某些分片未分配。这个怎么办?
我尝试将 cluster.routing.allocation.disable_allocation = false 设置为所有索引,但我认为这不起作用,因为我使用的是 1.1.1 版本。
我也尝试重新启动所有机器,但同样发生。
有什么想法吗?
编辑:
-
集群统计:
{ cluster_name: "elasticsearch", status: "red", timed_out: false, number_of_nodes: 5, number_of_data_nodes: 4, active_primary_shards: 4689, active_shards: 4689, relocating_shards: 0, initializing_shards: 10, unassigned_shards: 758 }
【问题讨论】:
-
发布 _cluster\health 和 _stats
-
这些端点对问题有何看法?在 /health 中显示 756 个未分配的碎片
-
使用“get”调用获取_cluster\health和_stats
-
{ cluster_name: "elasticsearch", status: "red", timed_out: false, number_of_nodes: 5, number_of_data_nodes: 4, active_primary_shards: 4689, active_shards: 4689, relocating_shards: 0, initializing_shards: 10, unassigned_shards : 758 }
-
这对我有用 stackoverflow.com/a/63777546/5756620 POST _cluster/reroute?retry_failed 如此处所述elastic.co/guide/en/elasticsearch/reference/6.8/…
标签: elasticsearch