How to enable shards allocation of node that was disabled the shards allocation

I disabled shards allocation using
curl -XPUT “http://username:password@host:port/_cluster/settings” -d
"transient" :{
"cluster.routing.allocation.exclude._ip" : "X.X.X.X"

Then again enabled using,

curl -XPUT "localhost:9200/_cluster/settings?pretty" -H 'Content-Type: application/json' -d'
"transient" : {
"cluster.routing.allocation.enable" : "all"

command with username and password.

The above reallocation command didn't work.
Still unable to re-allocate shards on this node.
How to reallocate shards on this node?
Thank You!

You need to null the exclusion you first added, replace the IP with nothing.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.