Return node to cluster

I have 3 node elasticsearch cluster

192.168.2.11 - node-01
192.168.2.12 - node-02
192.168.2.13 - node-03

and i deleted node-02 from cluster using this command

curl -XPUT 192.168.2.12:9200/_cluster/settings -H 'Content-Type: application/json' -d '{
  "transient" :{
      "cluster.routing.allocation.exclude._ip" : "192.168.2.12"
   }
}'

and ok, all my indexes moved to node-01 and node-03, but how to return back this node to the cluster? i try this command

curl -XPUT 192.168.2.12:9200/_cluster/settings -H 'Content-Type: application/json' -d '{
  "transient" :{
      "cluster.routing.allocation.include._ip" : "192.168.2.12"
   }
}'

but this doesn't works :"node does not cluster setting [cluster.routing.allocation.include] filters [_ip:\"192.168.2.12\"]

Sounds like you need to null out the exclude also if you didn't. Or you will be trying to include and exclude the same IP.

  "transient" :{
      "cluster.routing.allocation.exclude._ip" : null
   }
1 Like

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