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.
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.
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.
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.
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, 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.
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, 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.
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.
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.
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 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
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 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
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.