ElasticSearch: Unassigned Shards, how to fix?

前端 未结 24 1226
悲&欢浪女
悲&欢浪女 2020-12-04 05:03

I have an ES cluster with 4 nodes:

number_of_replicas: 1
search01 - master: false, data: false
search02 - master: true, data: true
search03 - master: false,          


        
24条回答
  •  执念已碎
    2020-12-04 05:22

    The only thing that worked for me was changing the number_of_replicas (I had 2 replicas, so I changed it to 1 and then changed back to 2).

    First:

    PUT /myindex/_settings
    {
        "index" : {
            "number_of_replicas" : 1
         }
    }
    

    Then:

    PUT /myindex/_settings
    {
        "index" : {
            "number_of_replicas" : 2
         }
    }
    

    (I Already asnwered it in this question)

提交回复
热议问题