ElasticSearch on Heroku


(Jonas Grimfelt) #1

I've been using ElasticSearch for a while now, really cannot live without
it now when I got used. :slight_smile: 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.


(Karussell) #2

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

And here is how you would start it via 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

Peter.

On 23 Nov., 09:50, Jonas Grimfelt gri...@gmail.com wrote:

I've been using ElasticSearch for a while now, really cannot live without
it now when I got used. :slight_smile: 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.


(Jonas Grimfelt) #3

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. :slight_smile:


(Peter Berkenbosch) #4

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)

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. :slight_smile:


(Jonas Grimfelt) #5

Was thinking about using the Amazon S3 gateway.

http://www.elasticsearch.org/guide/reference/modules/gateway/s3.html


(Peter Berkenbosch) #6

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

--
Peter Berkenbosch
Sent with Sparrow (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.

http://www.elasticsearch.org/guide/reference/modules/gateway/s3.html


(James Cook-3) #7

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.


(Jonas Grimfelt) #8

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


(system) #9