# Return node to cluster

**URL:** https://discuss.elastic.co/t/return-node-to-cluster/259663
**Category:** Elasticsearch
**Created:** [December 26, 2020, 1:29pm UTC](https://discuss.elastic.co/t/return-node-to-cluster/259663 "2020-12-26T13:29:31Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![KA3AXCTAH](https://avatars.discourse-cdn.com/v4/letter/k/919ad9/32.png) [@KA3AXCTAH](https://discuss.elastic.co/u/KA3AXCTAH)
#### Post date: [December 26, 2020, 1:29pm UTC](https://discuss.elastic.co/t/return-node-to-cluster/259663/1 "2020-12-26T13:29:31Z")

</div>

I have 3 node elasticsearch cluster

```auto
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

```auto
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

```auto
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\"]`

---

<div class="post-metadata">

### Author: ![aaron-nimocks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron-nimocks/32/73965_2.png) [@aaron-nimocks](https://discuss.elastic.co/u/aaron-nimocks)
#### Post date: [December 26, 2020, 7:48pm UTC](https://discuss.elastic.co/t/return-node-to-cluster/259663/2 "2020-12-26T19:48:22Z")

</div>

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.

```auto
  "transient" :{
      "cluster.routing.allocation.exclude._ip" : null
   }

```

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [January 23, 2021, 7:48pm UTC](https://discuss.elastic.co/t/return-node-to-cluster/259663/3 "2021-01-23T19:48:28Z")

</div>

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