CouchDB and Elasticsearch on same machine

2 views
Skip to first unread message

Thomas Hommers

unread,
Sep 3, 2012, 9:39:50 PM9/3/12
to us...@couchdb.apache.org
Hi,

for a first small "testing" deployment of our application I would like to run CouchDB and elasticsearch on the same machine to save some costs. After demand grows i plan to separate them.

Does anybody have experience with this, any specific issues to take care of?

I remember that several times i faced a problem with heavy CPU + memory usage of couchdb. Is there any way to limit this, so it will nicely co-exists with Elasticsearch? I read that elasticsearch makes trouble when the system starts swaping ...

Really appreciate any thoughts and comments.

Thanks in advance!
Thomas

Luke Driscoll

unread,
Sep 4, 2012, 8:25:41 AM9/4/12
to us...@couchdb.apache.org
We run this set up in QA with no real trouble, although we don't have very
high traffic on that box. I would suggest you give the box a couple of
cnames, like test-couchdb and test-elasticsearch; then when you create the
indices on test-elasticsearch you point them to test-couchdb; this should
help separation in the future.

Luke

Thomas Hommers

unread,
Sep 4, 2012, 8:50:39 AM9/4/12
to us...@couchdb.apache.org
Hi Luke,

thanks, that's a great idea. I will follow this advice.

How about memory and CPU? Did you had to limit couchdb? For elasticsearch's JVM i know you can set 'max-mem' ...

Thomas
________________________________________
From: Luke Driscoll [luke.d...@gmail.com]
Sent: Tuesday, September 04, 2012 8:25 PM
To: us...@couchdb.apache.org
Subject: Re: CouchDB and Elasticsearch on same machine

Luke Driscoll

unread,
Sep 4, 2012, 9:30:34 AM9/4/12
to us...@couchdb.apache.org
Thomas,
we don't limit the memory for couchdb, but elastic is set to 1GB. Our box
is a dual core vm, with 2GB on it.

Luke
Reply all
Reply to author
Forward
0 new messages