# ElasticSearch on Heroku

**URL:** <https://discuss.elastic.co/t/elasticsearch-on-heroku/5950>\
**Category:** Elasticsearch\
**Created:** [November 23, 2011, 8:50am UTC](https://discuss.elastic.co/t/elasticsearch-on-heroku/5950 "2011-11-23T08:50:28Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonas\_Grimfelt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jonas_grimfelt/32/3053_2.png) [@Jonas\_Grimfelt](https://discuss.elastic.co/u/Jonas_Grimfelt)\
**Post date:** [November 23, 2011, 8:50am UTC](https://discuss.elastic.co/t/elasticsearch-on-heroku/5950/1 "2011-11-23T08:50:28Z")

</div>

I've been using ElasticSearch for a while now, really cannot live without  
it now when I got used. 🙂 So far running on EC2 but since Heroku released  
support for Java (Cedar stack), I wonder if anyone had any luck getting ES  
running on there? I spent an hour trying but since I'm not from the Java  
world I have real trouble understand Maven - or launching ElasticSearch  
without binary "properly" - enough to get it to work. It was more like an  
experiment for me, so I'll just use own EC2 setup - but it would be  
interesting to see if it's even possible.

Would be greatful for any details, thanks in advice.

---

<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:** [November 23, 2011, 10:26am UTC](https://discuss.elastic.co/t/elasticsearch-on-heroku/5950/2 "2011-11-23T10:26:10Z")

</div>

No experience with Heroku here ... But if you need to build ES via  
Maven you can have a look into:

> <https://github.com/elastic/elasticsearch/pull/1456>
>
> Hi Shay,
> 
> I've struggled a bit with git but now I have hopefully the correctly c…hanged files to compile and test ElasticSearch from within NetBeans as there is no working gradle plugin available. Please ignore all the commits :) just have a look in the changed files. If depencencies changed, all the pom's can be automatically regenerated via gradlew and the script pkg/mavenize.sh
> 
> Important: I had to move 2 config files originally placed under java now under resources (to be maven compatible) - does this affect your build?
> 
> What I didn't understand: why is sigar not included in the gradle deps?
> 
> Regards,
> Peter.

And here is how you would start it via Java:

> <https://github.com/karussell/Jetwick/blob/master/src/main/java/de/jetwick/es/ElasticNode.java>

or you could even create a war file:  
[http://elasticsearch-users.115913.n3.nabble.com/Wares-Plugin-Deploying-elasticsearch-as-a-servlet-td3358703.html](http://elasticsearch-users.115913.n3.nabble.com/Wares-Plugin-Deploying-elasticsearch-as-a-servlet-td3358703.html)

Peter.

On 23 Nov., 09:50, Jonas Grimfelt [gri...@gmail.com](mailto:gri...@gmail.com) wrote:

> I've been using Elasticsearch for a while now, really cannot live without  
> it now when I got used. 🙂 So far running on EC2 but since Heroku released  
> support for Java (Cedar stack), I wonder if anyone had any luck getting ES  
> running on there? I spent an hour trying but since I'm not from the Java  
> world I have real trouble understand Maven - or launching Elasticsearch  
> without binary "properly" - enough to get it to work. It was more like an  
> experiment for me, so I'll just use own EC2 setup - but it would be  
> interesting to see if it's even possible.
> 
> Would be greatful for any details, thanks in advice.

---

<div class="post-metadata">

**Author:** ![Jonas\_Grimfelt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jonas_grimfelt/32/3053_2.png) [@Jonas\_Grimfelt](https://discuss.elastic.co/u/Jonas_Grimfelt)\
**Post date:** [November 23, 2011, 12:04pm UTC](https://discuss.elastic.co/t/elasticsearch-on-heroku/5950/3 "2011-11-23T12:04:01Z")

</div>

Thanks Karusell, looks like this would bring me a bit further in fact. Will  
have a look at them next experimental session and get back with status if I  
get anywhere with it. 🙂

---

<div class="post-metadata">

**Author:** ![Peter\_Berkenbosch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/peter_berkenbosch/32/3059_2.png) [@Peter\_Berkenbosch](https://discuss.elastic.co/u/Peter_Berkenbosch)\
**Post date:** [November 23, 2011, 12:33pm UTC](https://discuss.elastic.co/t/elasticsearch-on-heroku/5950/4 "2011-11-23T12:33:37Z")

</div>

You still need disk space .. Heroku is a read only system.. only available are databases and a volatile tmp dir.. I don;t think it will work.

--  
Peter Berkenbosch  
Sent with Sparrow ([http://www.sparrowmailapp.com/?sig](http://www.sparrowmailapp.com/?sig))

On Wednesday, November 23, 2011( w47 ) at 1:04 PM, Jonas Grimfelt wrote:

> Thanks Karusell, looks like this would bring me a bit further in fact. Will have a look at them next experimental session and get back with status if I get anywhere with it. 🙂

---

<div class="post-metadata">

**Author:** ![Jonas\_Grimfelt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jonas_grimfelt/32/3053_2.png) [@Jonas\_Grimfelt](https://discuss.elastic.co/u/Jonas_Grimfelt)\
**Post date:** [November 24, 2011, 3:21pm UTC](https://discuss.elastic.co/t/elasticsearch-on-heroku/5950/5 "2011-11-24T15:21:39Z")

</div>

Was thinking about using the Amazon S3 gateway.

[http://www.elasticsearch.org/guide/reference/modules/gateway/s3.html](http://www.elasticsearch.org/guide/reference/modules/gateway/s3.html)

---

<div class="post-metadata">

**Author:** ![Peter\_Berkenbosch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/peter_berkenbosch/32/3059_2.png) [@Peter\_Berkenbosch](https://discuss.elastic.co/u/Peter_Berkenbosch)\
**Post date:** [November 24, 2011, 3:35pm UTC](https://discuss.elastic.co/t/elasticsearch-on-heroku/5950/6 "2011-11-24T15:35:50Z")

</div>

Ah.. that sounds like a really cool solution..

--  
Peter Berkenbosch  
Sent with Sparrow ([http://www.sparrowmailapp.com/?sig](http://www.sparrowmailapp.com/?sig))

On Thursday, November 24, 2011( w47 ) at 4:21 PM, Jonas Grimfelt wrote:

> Was thinking about using the Amazon S3 gateway.
> 
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/modules/gateway/s3.html)

---

<div class="post-metadata">

**Author:** ![James\_Cook\_3](https://avatars.discourse-cdn.com/v4/letter/j/d2c977/32.png) [@James\_Cook\_3](https://discuss.elastic.co/u/James_Cook_3)\
**Post date:** [November 26, 2011, 7:00am UTC](https://discuss.elastic.co/t/elasticsearch-on-heroku/5950/7 "2011-11-26T07:00:32Z")

</div>

Keep in mind that write access to S3 from an outside network (non-EC2) is  
relatively very slow. I'm not sure what the direct performance issues are  
on ES's S3 gateway, but there is probably some kind of performance hit or a  
delay on writes.

---

<div class="post-metadata">

**Author:** ![Jonas\_Grimfelt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jonas_grimfelt/32/3053_2.png) [@Jonas\_Grimfelt](https://discuss.elastic.co/u/Jonas_Grimfelt)\
**Post date:** [December 4, 2011, 8:44pm UTC](https://discuss.elastic.co/t/elasticsearch-on-heroku/5950/8 "2011-12-04T20:44:37Z")

</div>

Heroku runs EC2 so that should not be an issue if S3 region is respected.

---

<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:46am UTC](https://discuss.elastic.co/t/elasticsearch-on-heroku/5950/9 "2017-07-06T03:46:27Z")

</div>


