# Removing nodes from the cluster

**URL:** <https://discuss.elastic.co/t/removing-nodes-from-the-cluster/8388>\
**Category:** Elasticsearch\
**Created:** [July 11, 2012, 7:26pm UTC](https://discuss.elastic.co/t/removing-nodes-from-the-cluster/8388 "2012-07-11T19:26:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shairon\_Toledo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shairon_toledo/32/2490_2.png) [@Shairon\_Toledo](https://discuss.elastic.co/u/Shairon_Toledo)\
**Post date:** [July 11, 2012, 7:26pm UTC](https://discuss.elastic.co/t/removing-nodes-from-the-cluster/8388/1 "2012-07-11T19:26:53Z")

</div>

Hi guys,

I have a cluster with 5 nodes, I want removed 2 nodes from cluster.  
What I'm doing is, before shutdown a node I run a gateway snapshot call,  
wait it, and so shut it down , however this action doesn't guarantee that  
all shards live in others nodes.

I'd like to know how what's the most accurate way to remove a node from the  
cluster keeping shards in the other nodes?

--

Shairon Toledo  
[http://hashcode.me](http://hashcode.me)

---

<div class="post-metadata">

**Author:** ![Lukas\_Vlcek1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas_vlcek1/32/819_2.png) [@Lukas\_Vlcek1](https://discuss.elastic.co/u/Lukas_Vlcek1)\
**Post date:** [July 11, 2012, 8:00pm UTC](https://discuss.elastic.co/t/removing-nodes-from-the-cluster/8388/2 "2012-07-11T20:00:40Z")

</div>

You can use shard allocation features for this

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

There was bunch of nice talks mentioning this feature at Berlin Buzzwords  
2012 this year. Check the talk. One of them was ... ehm ... featuring two  
clowns (plus one nice gentleman in the audience) trying to demo this  
feature live: [http://vimeo.com/album/1968418/video/44718093](http://vimeo.com/album/1968418/video/44718093) (shard  
allocation feature is show in the end on the show)

Regards,  
Lukas

On Wed, Jul 11, 2012 at 9:26 PM, Shairon Toledo [shairon.toledo@gmail.com](mailto:shairon.toledo@gmail.com)wrote:

> Hi guys,
> 
> I have a cluster with 5 nodes, I want removed 2 nodes from cluster.  
> What I'm doing is, before shutdown a node I run a gateway snapshot call,  
> wait it, and so shut it down , however this action doesn't guarantee that  
> all shards live in others nodes.
> 
> I'd like to know how what's the most accurate way to remove a node from  
> the cluster keeping shards in the other nodes?
> 
> --
> 
> Shairon Toledo  
> [http://hashcode.me](http://hashcode.me)

---

<div class="post-metadata">

**Author:** ![Shairon\_Toledo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shairon_toledo/32/2490_2.png) [@Shairon\_Toledo](https://discuss.elastic.co/u/Shairon_Toledo)\
**Post date:** [July 12, 2012, 2:06pm UTC](https://discuss.elastic.co/t/removing-nodes-from-the-cluster/8388/3 "2012-07-12T14:06:05Z")

</div>

Good talk Lukas, and nice live-fix for ES multicasting 🙂

I tested allocation api last night, it took a time to remove a node, I got  
best performance doing /optimize, /snapshot and ...exclude.\_ip, it worked  
faster.

Thank you,

On Wed, Jul 11, 2012 at 5:00 PM, Lukáš Vlček [lukas.vlcek@gmail.com](mailto:lukas.vlcek@gmail.com) wrote:

> You can use shard allocation features for this  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/index-modules/allocation.html)
> 
> There was bunch of nice talks mentioning this feature at Berlin Buzzwords  
> 2012 this year. Check the talk. One of them was ... ehm ... featuring two  
> clowns (plus one nice gentleman in the audience) trying to demo this  
> feature live: [http://vimeo.com/album/1968418/video/44718093](http://vimeo.com/album/1968418/video/44718093) (shard  
> allocation feature is show in the end on the show)
> 
> Regards,  
> Lukas
> 
> On Wed, Jul 11, 2012 at 9:26 PM, Shairon Toledo [shairon.toledo@gmail.com](mailto:shairon.toledo@gmail.com)wrote:
> 
> > Hi guys,
> > 
> > I have a cluster with 5 nodes, I want removed 2 nodes from cluster.  
> > What I'm doing is, before shutdown a node I run a gateway snapshot call,  
> > wait it, and so shut it down , however this action doesn't guarantee that  
> > all shards live in others nodes.
> > 
> > I'd like to know how what's the most accurate way to remove a node from  
> > the cluster keeping shards in the other nodes?
> > 
> > --
> > 
> > Shairon Toledo  
> > [http://hashcode.me](http://hashcode.me)

--

Shairon Toledo

> **[Microsoft Developer News | C++,C# & .NET Framework & More | CodeGuru](http://hashcode.me)**
>
> 您是否想要找关于幸运飞行艇 官方开奖历史记录 168飞艇全国统一开奖数据 还有幸运飞行艇官方开奖现场直播 幸运168飞艇全天精准稳定计划 这里都能一一提供。CodeGuru is where developers come to share ideas, articles, questions, answers, tips, tricks, comments, downloads, and more related to programming in areas including C++,...

---

<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 6, 2017, 3:20am UTC](https://discuss.elastic.co/t/removing-nodes-from-the-cluster/8388/4 "2017-07-06T03:20:29Z")

</div>


