# Remove nodes from ELK cluster

**URL:** <https://discuss.elastic.co/t/remove-nodes-from-elk-cluster/160669>\
**Category:** Elasticsearch\
**Created:** [December 13, 2018, 5:29am UTC](https://discuss.elastic.co/t/remove-nodes-from-elk-cluster/160669 "2018-12-13T05:29:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajisankar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rajisankar/32/43250_2.png) [@rajisankar](https://discuss.elastic.co/u/rajisankar)\
**Post date:** [December 13, 2018, 5:29am UTC](https://discuss.elastic.co/t/remove-nodes-from-elk-cluster/160669/1 "2018-12-13T05:29:49Z")

</div>

Hi,

I have Elasticsearch 6.3 OSS 3-node cluster. One master and 2 data nodes. I added another data node to the cluster. Then, removed it using the following API call.

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

```

The number of cluster nodes still remain 4 instead of 3. Am i missing some step to remove a node from cluster?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [December 13, 2018, 6:03am UTC](https://discuss.elastic.co/t/remove-nodes-from-elk-cluster/160669/2 "2018-12-13T06:03:12Z")

</div>

> [@rajisankar](#):
>
> One master and 2 data nodes

You should have 3 master nodes.

The command you sent does not remove a node.  
It excludes the node from shard allocation.

If you want to remove the node, just stop it.

---

<div class="post-metadata">

**Author:** ![rajisankar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rajisankar/32/43250_2.png) [@rajisankar](https://discuss.elastic.co/u/rajisankar)\
**Post date:** [December 13, 2018, 6:07am UTC](https://discuss.elastic.co/t/remove-nodes-from-elk-cluster/160669/3 "2018-12-13T06:07:13Z")

</div>

The data nodes are master-eligible. Yes, stopping it did the trick. Thanks!

---

<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 10, 2019, 6:07am UTC](https://discuss.elastic.co/t/remove-nodes-from-elk-cluster/160669/4 "2019-01-10T06:07:15Z")

</div>

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