elasticsearch - what to do with unassigned shards

后端 未结 7 1822
别跟我提以往
别跟我提以往 2020-11-28 21:54

my cluster is with yellow status because some shards are unassigned. what to do with this?

I tried set cluster.routing.allocation.disable_allocation = false

相关标签:
7条回答
  • 2020-11-28 22: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
         }
    }
    
    0 讨论(0)
提交回复
热议问题