gpt4 book ai didi

RED健康中的Elasticsearch索引

转载 作者:行者123 更新时间:2023-12-03 01:13:37 25 4
gpt4 key购买 nike

当我运行 curl -X GET "elastic01:9200/_cat/indices?v"我观察到我的一个指标在健康方面具有红色值

我检查了我的集群健康状况,甚至那是红色的

如何使 elasticsearch 索引健康状态从红色变为绿色。

最佳答案

好的开始,您已经知道哪个索引健康值在 RED 中,这意味着索引缺少一个或多个主分片,请使用此 great blog post of elastic 识别它们并查看集群中的某些节点是否已断开连接,持有 RED 索引的主分片

如果您无法取回节点,保留索引的主分片,那么如同一博客中所述,您必须丢失数据并使用 reroute API 创建空的主分片.

In the odd event that all nodes holding copies of this particularshard are all permanently dead, the only recourse is to use thereroute commands to allocate an empty/stale primary shard and acceptthe fact that data has been lost.

关于RED健康中的Elasticsearch索引,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63403972/

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