# Any bulletproof online resources for setting up ES on an Amazon micro EC2 instance?

**URL:** <https://discuss.elastic.co/t/any-bulletproof-online-resources-for-setting-up-es-on-an-amazon-micro-ec2-instance/14740>\
**Category:** Elasticsearch\
**Created:** [December 5, 2013, 10:14pm UTC](https://discuss.elastic.co/t/any-bulletproof-online-resources-for-setting-up-es-on-an-amazon-micro-ec2-instance/14740 "2013-12-05T22:14:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ryan\_Cassano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ryan_cassano/32/1916_2.png) [@Ryan\_Cassano](https://discuss.elastic.co/u/Ryan_Cassano)\
**Post date:** [December 5, 2013, 10:14pm UTC](https://discuss.elastic.co/t/any-bulletproof-online-resources-for-setting-up-es-on-an-amazon-micro-ec2-instance/14740/1 "2013-12-05T22:14:55Z")

</div>

Hi all --

New to ec2/S3 and ES and working through some growing pains. I have  
followed the instructions via  
[http://www.elasticsearch.org/tutorials/elasticsearch-on-ec2/](http://www.elasticsearch.org/tutorials/elasticsearch-on-ec2/) and can't seem  
to find where to set my env. var's for the likes of ES\_MIN\_MEM, etc.

Do you know of any URLs or videos that outline this process step by step?

The EC site seems a little short on details and there seems to be a lot of  
conflicting issues with different users when setting this up.

Thanks so much!

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/3312afc5-e345-477e-a57b-d9f35ec83c81%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3312afc5-e345-477e-a57b-d9f35ec83c81%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Michael\_Lussier](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michael_lussier/32/1591_2.png) [@Michael\_Lussier](https://discuss.elastic.co/u/Michael_Lussier)\
**Post date:** [December 6, 2013, 1:27am UTC](https://discuss.elastic.co/t/any-bulletproof-online-resources-for-setting-up-es-on-an-amazon-micro-ec2-instance/14740/2 "2013-12-06T01:27:06Z")

</div>

If you're on a debian-based system, you can declare vars inline like so:

ES\_MAX\_MEM=2gb /usr/local/bin/elasticsearch -f

And when you're in production, and using the service wrapper, declare those vars in /etc/init.d/elasticsearch, If you just want it to work, be fast, and reliable check us out at [qbox.io](http://qbox.io) ;).

---

<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:** [December 6, 2013, 4:23am UTC](https://discuss.elastic.co/t/any-bulletproof-online-resources-for-setting-up-es-on-an-amazon-micro-ec2-instance/14740/3 "2013-12-06T04:23:05Z")

</div>

That say, on a micro instance, I don't believe you need to set memory settings! 🙂  
You have around 700 Mb RAM available iirc.

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 6 déc. 2013 à 02:27, Michael Lussier [michael@stacksearch.com](mailto:michael@stacksearch.com) a écrit :

If you're on a debian-based system, you can declare vars inline like so:

ES\_MAX\_MEM=2gb /usr/local/bin/elasticsearch -f

And when you're in production, and using the service wrapper, declare those  
vars in /etc/init.d/elasticsearch, If you just want it to work, be fast, and  
reliable check us out at qbox.io [http://qbox.io](http://qbox.io) ;).

* * *

--  
View this message in context: [http://elasticsearch-users.115913.n3.nabble.com/Any-bulletproof-online-resources-for-setting-up-ES-on-an-Amazon-micro-EC2-instance-tp4045569p4045575.html](http://elasticsearch-users.115913.n3.nabble.com/Any-bulletproof-online-resources-for-setting-up-ES-on-an-Amazon-micro-EC2-instance-tp4045569p4045575.html)  
Sent from the ElasticSearch Users mailing list archive at [Nabble.com](http://Nabble.com).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/1386293226531-4045575.post%40n3.nabble.com](https://groups.google.com/d/msgid/elasticsearch/1386293226531-4045575.post%40n3.nabble.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/F687D1D2-0AAE-4D4B-A09A-D2B83DB322C1%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/F687D1D2-0AAE-4D4B-A09A-D2B83DB322C1%40pilato.fr).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![karmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/karmi/32/44951_2.png) [@karmi](https://discuss.elastic.co/u/karmi)\
**Post date:** [December 6, 2013, 9:06am UTC](https://discuss.elastic.co/t/any-bulletproof-online-resources-for-setting-up-es-on-an-amazon-micro-ec2-instance/14740/4 "2013-12-06T09:06:04Z")

</div>

You need to set the ES\_HEAP\_SIZE environment variable to some reasonable value (~300MB?), and disable the `bootstrap.mlockall` setting, micros and weak VMs have trouble with it.

Also, install ES from the official deb/rpm packages, so you don't wrestle with the settings being applied.

Lastly, note that a micro instance is useful mainly for testing/evaluation, or a system with very low demands.

Karel

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/e8d02904-3734-4632-9520-404d477e6437%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e8d02904-3734-4632-9520-404d477e6437%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Ryan\_Cassano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ryan_cassano/32/1916_2.png) [@Ryan\_Cassano](https://discuss.elastic.co/u/Ryan_Cassano)\
**Post date:** [December 8, 2013, 3:40pm UTC](https://discuss.elastic.co/t/any-bulletproof-online-resources-for-setting-up-es-on-an-amazon-micro-ec2-instance/14740/5 "2013-12-08T15:40:34Z")

</div>

Thanks everyone. Got it up and working, now trying to figure Kibana and how  
it queries. Probably post a new topic!

Anyway thanks again.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/d070a0dd-0e65-4f82-a476-57277e7ec05a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d070a0dd-0e65-4f82-a476-57277e7ec05a%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [December 8, 2013, 5:10pm UTC](https://discuss.elastic.co/t/any-bulletproof-online-resources-for-setting-up-es-on-an-amazon-micro-ec2-instance/14740/6 "2013-12-08T17:10:06Z")

</div>

I played around with microinstances in the past. I would use a 32-bit  
instance/JVM whenever possible since there is no need larger object  
references, although the JVM will compress the object references for heaps  
under 32GB.

Cheers,

Ivan

On Sun, Dec 8, 2013 at 7:40 AM, Ryan Cassano [ryancassano@gmail.com](mailto:ryancassano@gmail.com) wrote:

> Thanks everyone. Got it up and working, now trying to figure Kibana and  
> how it queries. Probably post a new topic!
> 
> Anyway thanks again.
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/d070a0dd-0e65-4f82-a476-57277e7ec05a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d070a0dd-0e65-4f82-a476-57277e7ec05a%40googlegroups.com)  
> .
> 
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCyDFC\_LjjU7BMm3%3DLjfyT7R3EOrM7sjxVd2%2BCwTaskKw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCyDFC_LjjU7BMm3%3DLjfyT7R3EOrM7sjxVd2%2BCwTaskKw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:02am UTC](https://discuss.elastic.co/t/any-bulletproof-online-resources-for-setting-up-es-on-an-amazon-micro-ec2-instance/14740/7 "2017-07-06T02:02:38Z")

</div>


