美文网首页ElasticSearch
ElasticSearch5.x中出现UNASSIGNED分片的

ElasticSearch5.x中出现UNASSIGNED分片的

作者: jetliu1987 | 来源:发表于2018-01-15 10:15 被阅读0次

最近,由于ElasticSearch5集群的节点负载高导致节点超时,因而造成索引的分片出现UNASSIGNED状态,这种情况下的处理办法如下:

GET _cat/shards?h=index,shard,prirep,state,unassigned.reason

在Kibana中执行这个语句,查看分片不能够进行分配的原因,查看ElasticSearch官方网站

https://www.elastic.co/guide/en/elasticsearch/reference/5.3/cat-shards.html

可以看到是什么原因;

然后执行 POST _cluster/reroute?retry_failed,分片分配重试,可以重新分配分片,可能需要多执行几次,没有找到其他参数,具体参考 https://www.elastic.co/guide/en/elasticsearch/reference/5.3/cluster-reroute.html#

相关文章

网友评论

    本文标题:ElasticSearch5.x中出现UNASSIGNED分片的

    本文链接:https://www.haomeiwen.com/subject/evjroxtx.html