You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Thomas Hommers <th...@ebalu.com> on 2012/09/04 03:39:50 UTC

CouchDB and Elasticsearch on same machine

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

Re: CouchDB and Elasticsearch on same machine

Posted by Luke Driscoll <lu...@gmail.com>.
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

On 4 September 2012 08:50, Thomas Hommers <th...@ebalu.com> wrote:

> 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.driscoll@gmail.com]
> Sent: Tuesday, September 04, 2012 8:25 PM
> To: user@couchdb.apache.org
> Subject: Re: CouchDB and Elasticsearch on same machine
>
> 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
>
> On 3 September 2012 21:39, Thomas Hommers <th...@ebalu.com>
> wrote:
>
> > 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
>

RE: CouchDB and Elasticsearch on same machine

Posted by Thomas Hommers <th...@ebalu.com>.
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.driscoll@gmail.com]
Sent: Tuesday, September 04, 2012 8:25 PM
To: user@couchdb.apache.org
Subject: Re: CouchDB and Elasticsearch on same machine

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

On 3 September 2012 21:39, Thomas Hommers <th...@ebalu.com> wrote:

> 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

Re: CouchDB and Elasticsearch on same machine

Posted by Luke Driscoll <lu...@gmail.com>.
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

On 3 September 2012 21:39, Thomas Hommers <th...@ebalu.com> wrote:

> 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