elasticsearch - what to do with unassigned shards

后端 未结 7 1859
别跟我提以往
别跟我提以往 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:12

    The first 2 points of the answer by Alcanzar did it for me, but I had to add

    "allow_primary" : true
    

    like so

    curl -XPOST http://localhost:9200/_cluster/reroute?pretty -d '{
      "commands": [
        {
          "allocate": {
            "index": ".marvel-2014.05.21",
            "shard": 0,
            "node": "SOME_NODE_HERE",
            "allow_primary": true
          }
        }
      ]
    }'
    

提交回复
热议问题