# How to remove a data node from the cluster?

**URL:** <https://discuss.elastic.co/t/how-to-remove-a-data-node-from-the-cluster/57016>\
**Category:** Elasticsearch\
**Created:** [August 2, 2016, 2:03pm UTC](https://discuss.elastic.co/t/how-to-remove-a-data-node-from-the-cluster/57016 "2016-08-02T14:03:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![whzcl](https://avatars.discourse-cdn.com/v4/letter/w/eb8c5e/32.png) [@whzcl](https://discuss.elastic.co/u/whzcl)\
**Post date:** [August 2, 2016, 2:03pm UTC](https://discuss.elastic.co/t/how-to-remove-a-data-node-from-the-cluster/57016/1 "2016-08-02T14:03:05Z")

</div>

Hi,

We have 30 data nodes and 3 master nodes in our cluster. If one data node is in trouble, for example, the hardware is broken, the overall search performance will be affected.

My current solution is that: I manually shutdown the data node. However, this method is not good.

Therefore, my question is:  
Is there any API to remove the node from the cluster dynamiclly?

Thank you~

---

<div class="post-metadata">

**Author:** ![anhlqn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anhlqn/32/5454_2.png) [@anhlqn](https://discuss.elastic.co/u/anhlqn)\
**Post date:** [August 2, 2016, 10:02pm UTC](https://discuss.elastic.co/t/how-to-remove-a-data-node-from-the-cluster/57016/2 "2016-08-02T22:02:23Z")

</div>

I normally use index routing to route all indexes/shards off a node and then shut it down.

---

<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:** [July 5, 2017, 10:30pm UTC](https://discuss.elastic.co/t/how-to-remove-a-data-node-from-the-cluster/57016/3 "2017-07-05T22:30:35Z")

</div>


