Reroute index shard from one node to another node

 POST /_cluster/reroute


{  

 "commands": [ 

  { 

     "move": { 

        "index": "my_index", 

        "shard": 0, 

        "from_node": "node1", 

        "to_node": "node2" 

      } 

  } 

 ] 

}

{
  "commands": [
    {
      "move": {
        "index": "my_index",
        "shard": 0,
        "from_node": "node1",
        "to_node": "node2"
      }
    }
  ]
}

Comments

Popular posts from this blog

Fixing the DeepSpeed Import Error While Fine-Tuning the Qwen Model

Amazon Linux 2023 - User data configuration for launch templates to connect to the EKS cluster

How to create ISM policy and rotate logs in opensearch