# Concerns regarding decommissioning a node

**URL:** <https://discuss.elastic.co/t/concerns-regarding-decommissioning-a-node/5672>\
**Category:** Elasticsearch\
**Created:** [October 25, 2011, 2:39am UTC](https://discuss.elastic.co/t/concerns-regarding-decommissioning-a-node/5672 "2011-10-25T02:39:45Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![vineeth\_mohan](https://avatars.discourse-cdn.com/v4/letter/v/bc79bd/32.png) [@vineeth\_mohan](https://discuss.elastic.co/u/vineeth_mohan)\
**Post date:** [October 25, 2011, 2:39am UTC](https://discuss.elastic.co/t/concerns-regarding-decommissioning-a-node/5672/1 "2011-10-25T02:39:45Z")

</div>

Hi ,

I started a index with 5 shards and 1 replica on our integration(INT)  
environment on a single machine.(This is to make sure i can scale the index  
, if needed ,in future)  
Unfortunately when i plugged my dev box to the INT environment network , the  
ES instance running on my box automatically hooked up (What a bitch [?] )  
with the master ES instance  
in the INT environment ☹ (As it is in multi-cast discovory more ).

Due to this half the documents i have is in my dev box and rest in INT box.

How can i decommission the node running on my dev box. That is i need to  
transfer the documents to the INT box and shutdown the DEV instance for the  
good.

Thanks  
Vineeth

---

<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:** [October 25, 2011, 6:51am UTC](https://discuss.elastic.co/t/concerns-regarding-decommissioning-a-node/5672/2 "2011-10-25T06:51:04Z")

</div>

I suggest changing your cluster name for each env :  
For dev instances, use :  
ES-DEV-USERNAME (in case of many developpers)  
For INT instances, use :  
ES-INT  
For production, use :  
ES-PROD

So even, nodes can see each other on the network, they won't try to work for another cluster.

HTH  
David 😉

Le 25 oct. 2011 à 04:39, Vineeth Mohan [vineethmohan@algotree.com](mailto:vineethmohan@algotree.com) a écrit :

> Hi ,
> 
> I started a index with 5 shards and 1 replica on our integration(INT) environment on a single machine.(This is to make sure i can scale the index , if needed ,in future)  
> Unfortunately when i plugged my dev box to the INT environment network , the ES instance running on my box automatically hooked up (What a bitch \<35D.gif\> ) with the master ES instance  
> in the INT environment ☹ (As it is in multi-cast discovory more ).
> 
> Due to this half the documents i have is in my dev box and rest in INT box.
> 
> How can i decommission the node running on my dev box. That is i need to transfer the documents to the INT box and shutdown the DEV instance for the good.
> 
> Thanks  
> Vineeth

---

<div class="post-metadata">

**Author:** ![Clinton\_Gormley](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@Clinton\_Gormley](https://discuss.elastic.co/u/Clinton_Gormley)\
**Post date:** [October 25, 2011, 7:22am UTC](https://discuss.elastic.co/t/concerns-regarding-decommissioning-a-node/5672/3 "2011-10-25T07:22:26Z")

</div>

On Tue, 2011-10-25 at 08:09 +0530, Vineeth Mohan wrote:

> How can i decommission the node running on my dev box. That is i need  
> to transfer the documents to the INT box and shutdown the DEV instance  
> for the good.

Just shut down the node on your DEV box, and the INT server's replica  
shard will be promoted to primary.

clint

---

<div class="post-metadata">

**Author:** ![vineeth\_mohan](https://avatars.discourse-cdn.com/v4/letter/v/bc79bd/32.png) [@vineeth\_mohan](https://discuss.elastic.co/u/vineeth_mohan)\
**Post date:** [October 25, 2011, 9:43am UTC](https://discuss.elastic.co/t/concerns-regarding-decommissioning-a-node/5672/4 "2011-10-25T09:43:59Z")

</div>

When i shut down the dev box , things were working fine at master but it  
lost some documents.  
When i brought back dev instance all these documents came back.  
I dont want to loose any document in the process.

On Tue, Oct 25, 2011 at 12:52 PM, Clinton Gormley [clint@traveljury.com](mailto:clint@traveljury.com)wrote:

> On Tue, 2011-10-25 at 08:09 +0530, Vineeth Mohan wrote:
> 
> > How can i decommission the node running on my dev box. That is i need  
> > to transfer the documents to the INT box and shutdown the DEV instance  
> > for the good.
> 
> Just shut down the node on your DEV box, and the INT server's replica  
> shard will be promoted to primary.
> 
> clint

---

<div class="post-metadata">

**Author:** ![vineeth\_mohan](https://avatars.discourse-cdn.com/v4/letter/v/bc79bd/32.png) [@vineeth\_mohan](https://discuss.elastic.co/u/vineeth_mohan)\
**Post date:** [October 25, 2011, 9:50am UTC](https://discuss.elastic.co/t/concerns-regarding-decommissioning-a-node/5672/5 "2011-10-25T09:50:16Z")

</div>

@David - changing cluster name will help in future. But can i get a fix to  
this scenario.

On Tue, Oct 25, 2011 at 3:13 PM, Vineeth Mohan [vineethmohan@algotree.com](mailto:vineethmohan@algotree.com)wrote:

> When i shut down the dev box , things were working fine at master but it  
> lost some documents.  
> When i brought back dev instance all these documents came back.  
> I dont want to loose any document in the process.
> 
> On Tue, Oct 25, 2011 at 12:52 PM, Clinton Gormley [clint@traveljury.com](mailto:clint@traveljury.com)wrote:
> 
> > On Tue, 2011-10-25 at 08:09 +0530, Vineeth Mohan wrote:
> > 
> > > How can i decommission the node running on my dev box. That is i need  
> > > to transfer the documents to the INT box and shutdown the DEV instance  
> > > for the good.
> > 
> > Just shut down the node on your DEV box, and the INT server's replica  
> > shard will be promoted to primary.
> > 
> > clint

---

<div class="post-metadata">

**Author:** ![Clinton\_Gormley](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@Clinton\_Gormley](https://discuss.elastic.co/u/Clinton_Gormley)\
**Post date:** [October 25, 2011, 9:53am UTC](https://discuss.elastic.co/t/concerns-regarding-decommissioning-a-node/5672/6 "2011-10-25T09:53:31Z")

</div>

On Tue, 2011-10-25 at 15:13 +0530, Vineeth Mohan wrote:

> When i shut down the dev box , things were working fine at master but  
> it lost some documents.  
> When i brought back dev instance all these documents came back.  
> I dont want to loose any document in the process.

Are you sure that your index is set to {number\_of\_replicas: 1} then?

If you have 1 replica, and 2 nodes, then all your docs should be on both  
nodes.

clint

---

<div class="post-metadata">

**Author:** ![vineeth\_mohan](https://avatars.discourse-cdn.com/v4/letter/v/bc79bd/32.png) [@vineeth\_mohan](https://discuss.elastic.co/u/vineeth_mohan)\
**Post date:** [October 25, 2011, 10:09am UTC](https://discuss.elastic.co/t/concerns-regarding-decommissioning-a-node/5672/7 "2011-10-25T10:09:49Z")

</div>

Nope its 0 replica and 5 shards.  
Sorry for the wrong details b4.

Thanks  
Vineeth

On Tue, Oct 25, 2011 at 3:23 PM, Clinton Gormley [clint@traveljury.com](mailto:clint@traveljury.com)wrote:

> On Tue, 2011-10-25 at 15:13 +0530, Vineeth Mohan wrote:
> 
> > When i shut down the dev box , things were working fine at master but  
> > it lost some documents.  
> > When i brought back dev instance all these documents came back.  
> > I dont want to loose any document in the process.
> 
> Are you sure that your index is set to {number\_of\_replicas: 1} then?
> 
> If you have 1 replica, and 2 nodes, then all your docs should be on both  
> nodes.
> 
> clint

---

<div class="post-metadata">

**Author:** ![Clinton\_Gormley](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@Clinton\_Gormley](https://discuss.elastic.co/u/Clinton_Gormley)\
**Post date:** [October 25, 2011, 10:41am UTC](https://discuss.elastic.co/t/concerns-regarding-decommissioning-a-node/5672/8 "2011-10-25T10:41:32Z")

</div>

On Tue, 2011-10-25 at 15:39 +0530, Vineeth Mohan wrote:

> Nope its 0 replica and 5 shards.  
> Sorry for the wrong details b4.

Then update your index settings and change number of replicas to 1, and  
once your cluster is green, then shutdown the DEV node

c

> Thanks  
> Vineeth
> 
> On Tue, Oct 25, 2011 at 3:23 PM, Clinton Gormley  
> [clint@traveljury.com](mailto:clint@traveljury.com) wrote:  
> On Tue, 2011-10-25 at 15:13 +0530, Vineeth Mohan wrote:  
> \> When i shut down the dev box , things were working fine at  
> master but  
> \> it lost some documents.  
> \> When i brought back dev instance all these documents came  
> back.  
> \> I dont want to loose any document in the process.
> 
> ```
> Are you sure that your index is set to {number_of_replicas: 1}
> then?
>     
> If you have 1 replica, and 2 nodes, then all your docs should
> be on both
> nodes.
>     
> clint
> 
> ```

---

<div class="post-metadata">

**Author:** ![vineeth\_mohan](https://avatars.discourse-cdn.com/v4/letter/v/bc79bd/32.png) [@vineeth\_mohan](https://discuss.elastic.co/u/vineeth_mohan)\
**Post date:** [October 25, 2011, 12:01pm UTC](https://discuss.elastic.co/t/concerns-regarding-decommissioning-a-node/5672/9 "2011-10-25T12:01:04Z")

</div>

thanks dude.  
Looks like a workable idea.

Thanks  
Vineeth

On Tue, Oct 25, 2011 at 4:11 PM, Clinton Gormley [clint@traveljury.com](mailto:clint@traveljury.com)wrote:

> On Tue, 2011-10-25 at 15:39 +0530, Vineeth Mohan wrote:
> 
> > Nope its 0 replica and 5 shards.  
> > Sorry for the wrong details b4.
> 
> Then update your index settings and change number of replicas to 1, and  
> once your cluster is green, then shutdown the DEV node
> 
> c
> 
> > Thanks  
> > Vineeth
> > 
> > On Tue, Oct 25, 2011 at 3:23 PM, Clinton Gormley  
> > [clint@traveljury.com](mailto:clint@traveljury.com) wrote:  
> > On Tue, 2011-10-25 at 15:13 +0530, Vineeth Mohan wrote:  
> > \> When i shut down the dev box , things were working fine at  
> > master but  
> > \> it lost some documents.  
> > \> When i brought back dev instance all these documents came  
> > back.  
> > \> I dont want to loose any document in the process.
> > 
> > ```
> > Are you sure that your index is set to {number_of_replicas: 1}
> > then?
> > 
> > If you have 1 replica, and 2 nodes, then all your docs should
> > be on both
> > nodes.
> > 
> > clint
> > 
> > ```

---

<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:51am UTC](https://discuss.elastic.co/t/concerns-regarding-decommissioning-a-node/5672/10 "2017-07-06T03:51:02Z")

</div>


