RED健康中的Elasticsearch索引
Elasticsearch index in RED health
当我运行 curl -X GET "elastic01:9200/_cat/indices?v"
我观察到我的一个指数在健康方面的价值是红色
我检查了我的集群健康状况,甚至那是红色的
如何才能使 elasticsearch 索引健康状态从红色变为绿色。
好的开始,您已经知道 RED 中的哪个索引健康值,这意味着索引缺少一个或多个主分片,请使用此 [=11= 识别它们] 并查看集群中的某些节点是否已断开连接,持有 RED 索引的主分片?
如果您无法取回节点,保留索引的主分片,那么如同一博客中所述,您必须丢失数据并使用 reroute API 创建空的主分片。
In the odd event that all nodes holding copies of this particular
shard are all permanently dead, the only recourse is to use the
reroute commands to allocate an empty/stale primary shard and accept
the fact that data has been lost.
当我运行 curl -X GET "elastic01:9200/_cat/indices?v" 我观察到我的一个指数在健康方面的价值是红色
我检查了我的集群健康状况,甚至那是红色的
如何才能使 elasticsearch 索引健康状态从红色变为绿色。
好的开始,您已经知道 RED 中的哪个索引健康值,这意味着索引缺少一个或多个主分片,请使用此 [=11= 识别它们] 并查看集群中的某些节点是否已断开连接,持有 RED 索引的主分片?
如果您无法取回节点,保留索引的主分片,那么如同一博客中所述,您必须丢失数据并使用 reroute API 创建空的主分片。
In the odd event that all nodes holding copies of this particular shard are all permanently dead, the only recourse is to use the reroute commands to allocate an empty/stale primary shard and accept the fact that data has been lost.