# Setting up ElasticSearch on Amazon

**URL:** <https://discuss.elastic.co/t/setting-up-elasticsearch-on-amazon/7314>\
**Category:** Elasticsearch\
**Created:** [April 12, 2012, 7:20pm UTC](https://discuss.elastic.co/t/setting-up-elasticsearch-on-amazon/7314 "2012-04-12T19:20:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kinesh](https://avatars.discourse-cdn.com/v4/letter/k/eb9ed0/32.png) [@kinesh](https://discuss.elastic.co/u/kinesh)\
**Post date:** [April 12, 2012, 7:20pm UTC](https://discuss.elastic.co/t/setting-up-elasticsearch-on-amazon/7314/1 "2012-04-12T19:20:00Z")

</div>

Hi,

I am fairly new to using elasticsearch. I read most of the tutorials  
and presentations available over the web. However I am still not sure  
about this one thing.

In conf file I set up my cluster as shown on the website. The gateway  
I am using is s3. I setup my elasticsearch in /usr/local/ and took and  
AMI image of it, so next time I create a node it has elasticsearch on  
it with my specified configurations. Also in my conf file value for  
path to store my data is an EBS which gets mounted as soon as node is  
created, for persistence data.

How would elasticsearch look for data if I use s3 gateway and store my  
data on EBS volume

Now what I do not understand is, if I am storing my data in EBS /mnt/  
storage/ and using s3 gateway. In the event when the  
cluster is comes down and is recovering, will the nodes first check  
their local storage or will it start downloading data from s3. Data is  
there in both the places.

Let me know any comments for this kind of setup.

Thanks!!

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [April 13, 2012, 12:30pm UTC](https://discuss.elastic.co/t/setting-up-elasticsearch-on-amazon/7314/2 "2012-04-13T12:30:50Z")

</div>

If you use s3, then the local data stored (on EBS in your case) will be  
copied to s3 and then resync'ed on cluster restart. I suggest you stick to  
using the local gateway with EBS, and not use s3.

On Thu, Apr 12, 2012 at 10:20 PM, kinesh [kxs2624@rit.edu](mailto:kxs2624@rit.edu) wrote:

> Hi,
> 
> I am fairly new to using elasticsearch. I read most of the tutorials  
> and presentations available over the web. However I am still not sure  
> about this one thing.
> 
> In conf file I set up my cluster as shown on the website. The gateway  
> I am using is s3. I setup my elasticsearch in /usr/local/ and took and  
> AMI image of it, so next time I create a node it has elasticsearch on  
> it with my specified configurations. Also in my conf file value for  
> path to store my data is an EBS which gets mounted as soon as node is  
> created, for persistence data.
> 
> How would elasticsearch look for data if I use s3 gateway and store my  
> data on EBS volume
> 
> Now what I do not understand is, if I am storing my data in EBS /mnt/  
> storage/ and using s3 gateway. In the event when the  
> cluster is comes down and is recovering, will the nodes first check  
> their local storage or will it start downloading data from s3. Data is  
> there in both the places.
> 
> Let me know any comments for this kind of setup.
> 
> Thanks!!

---

<div class="post-metadata">

**Author:** ![kinesh](https://avatars.discourse-cdn.com/v4/letter/k/eb9ed0/32.png) [@kinesh](https://discuss.elastic.co/u/kinesh)\
**Post date:** [April 13, 2012, 10:36pm UTC](https://discuss.elastic.co/t/setting-up-elasticsearch-on-amazon/7314/3 "2012-04-13T22:36:28Z")

</div>

Thanks Shay!!

On Apr 13, 5:30 am, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:

> If you use s3, then the local data stored (on EBS in your case) will be  
> copied to s3 and then resync'ed on cluster restart. I suggest you stick to  
> using the local gateway with EBS, and not use s3.
> 
> On Thu, Apr 12, 2012 at 10:20 PM, kinesh [kxs2...@rit.edu](mailto:kxs2...@rit.edu) wrote:
> 
> > Hi,
> 
> > I am fairly new to using elasticsearch. I read most of the tutorials  
> > and presentations available over the web. However I am still not sure  
> > about this one thing.
> 
> > In conf file I set up my cluster as shown on the website. The gateway  
> > I am using is s3. I setup my elasticsearch in /usr/local/ and took and  
> > AMI image of it, so next time I create a node it has elasticsearch on  
> > it with my specified configurations. Also in my conf file value for  
> > path to store my data is an EBS which gets mounted as soon as node is  
> > created, for persistence data.
> 
> > How would elasticsearch look for data if I use s3 gateway and store my  
> > data on EBS volume
> 
> > Now what I do not understand is, if I am storing my data in EBS /mnt/  
> > storage/ and using s3 gateway. In the event when the  
> > cluster is comes down and is recovering, will the nodes first check  
> > their local storage or will it start downloading data from s3. Data is  
> > there in both the places.
> 
> > Let me know any comments for this kind of setup.
> 
> > Thanks!!

---

<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:32am UTC](https://discuss.elastic.co/t/setting-up-elasticsearch-on-amazon/7314/4 "2017-07-06T03:32:37Z")

</div>


