ElasticSearch重启之后shard未分配导致个别索引为“红色”状态

1. Check the cluster allocation explain API
GET /_cluster/allocation/explain

在这里插入图片描述

2.根据错误提示执行相应命令
POST /_cluster/reroute?retry_failed=true
3.查看原先“红色”状态的索引分片情况
GET /_cat/shards?index=index_name

参考:Health check on my ES cluster shows 99.7%
记一次ElasticSearch重启之后shard未分配问题的解决

猜你喜欢

转载自blog.csdn.net/Cocktail_py/article/details/114255597
今日推荐