# Cloning AWS instance and local storage?

**URL:** <https://discuss.elastic.co/t/cloning-aws-instance-and-local-storage/6315>\
**Category:** Elasticsearch\
**Created:** [January 9, 2012, 1:09am UTC](https://discuss.elastic.co/t/cloning-aws-instance-and-local-storage/6315 "2012-01-09T01:09:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![derrickburns](https://avatars.discourse-cdn.com/v4/letter/d/50afbb/32.png) [@derrickburns](https://discuss.elastic.co/u/derrickburns)\
**Post date:** [January 9, 2012, 1:09am UTC](https://discuss.elastic.co/t/cloning-aws-instance-and-local-storage/6315/1 "2012-01-09T01:09:45Z")

</div>

I created an index with K shards on a single AWS EC2 instance using K  
JVMS. I now want to add more AWS EC2 instances to the mix.

If I clone my original AWS EC2 instance AND data and change the  
gateway configuration to expect 2\*K nodes, and start up K ES servers  
on each AWS instance, will  
the cloned node use the cloned data or will it discard the cloned data  
and copy the cloned data from a primary node when assuming  
responsibility for a shard?

---

<div class="post-metadata">

**Author:** ![Karussell1](https://avatars.discourse-cdn.com/v4/letter/k/50afbb/32.png) [@Karussell1](https://discuss.elastic.co/u/Karussell1)\
**Post date:** [January 9, 2012, 7:53am UTC](https://discuss.elastic.co/t/cloning-aws-instance-and-local-storage/6315/2 "2012-01-09T07:53:33Z")

</div>

> I created an index with K shards on a single AWS EC2 instance using K  
> JVMS. I now want to add more AWS EC2 instances to the mix.

Why are you using K JVMs? Why not one per instance?

> change the gateway configuration to expect 2\*K nodes

no need to change configuration if you only want to add servers.

> will the cloned node use the cloned data

I think it'll use the cloned data, but I'm not sure if its a good idea  
(at least flush before copying the instance).

Peter.

---

<div class="post-metadata">

**Author:** ![derrickburns](https://avatars.discourse-cdn.com/v4/letter/d/50afbb/32.png) [@derrickburns](https://discuss.elastic.co/u/derrickburns)\
**Post date:** [January 9, 2012, 8:20am UTC](https://discuss.elastic.co/t/cloning-aws-instance-and-local-storage/6315/3 "2012-01-09T08:20:03Z")

</div>

K JVMs per AWS EC2 instance is a bad idea.

However, I wanted to test AWS clustering without having to start/stop  
multiple instances.

Thx.

On Jan 8, 11:53 pm, Karussell [tableyourt...@googlemail.com](mailto:tableyourt...@googlemail.com) wrote:

> > I created an index with K shards on a single AWS EC2 instance using K  
> > JVMS. I now want to add more AWS EC2 instances to the mix.
> 
> Why are you using K JVMs? Why not one per instance?
> 
> > change the gateway configuration to expect 2\*K nodes
> 
> no need to change configuration if you only want to add servers.
> 
> > will the cloned node use the cloned data
> 
> I think it'll use the cloned data, but I'm not sure if its a good idea  
> (at least flush before copying the instance).
> 
> Peter.

---

<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:43am UTC](https://discuss.elastic.co/t/cloning-aws-instance-and-local-storage/6315/4 "2017-07-06T03:43:24Z")

</div>


