美文网首页Elasticsearch
Elastisearch_cluster常用api

Elastisearch_cluster常用api

作者: 菜花_Q | 来源:发表于2018-05-02 17:07 被阅读2次

集群中分片数据已不存在的处理方法:

1)恢复存有N分片的源节点,

2)使用reroute API强制分配分片(官网地址:Cluster Reroute | Elasticsearch Reference [5.5] | Elastic

post /_cluster/reroute

{

  "commands" : [

    {

      "allocate_empty_primary" :

      { "index" :"yw_nginxaccess-2018_04_27", "shard" : 33, "node":"node-75-144", "accept_data_loss": "true" }

  }]

}

参考链接:解决ES分片未分配的问题 - CSDN博客

相关文章

网友评论

    本文标题:Elastisearch_cluster常用api

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