Cluster. Routing. Allocation. Enable: None Seems Not Working

Cluster. Routing. Allocation. Enable: None Seems Not Working

I disable the shard allocation with following snippet:

PUT _cluster/settings
{
  "persistent": {
    "cluster.routing.allocation.enable": "none"
  }
}

I double check GET _cluster/settings' and confirm it has been set with none.

But when I use the following snippet trying to move a shard between nodes. And the move succeeds, looks the "cluster.routing.allocation.enable": "none" doesn't take effect?

POST /_cluster/reroute
{
  "commands": [
    {
      "move": {
        "index": "lib38",
        "shard": 0,
        "from_node": "node-1",
        "to_node": "node-3"
      }
    }
  ]
}

1 Answer

Manually rerouting a shard will always take precedence over configuration.

cluster.routing.allocation.enable is only giving a hint to the cluster that automatic reallocation should not take place.

In your other question, you were concerned about automatic rebalancing, it seems.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Chloe Bennett
Author

Chloe Bennett

Chloe Bennett explores the intersection of pop culture, streaming entertainment, digital trends, and contemporary lifestyle. Her weekly commentary reaches thousands of culture enthusiasts.