# Why is multiple instances per node not recommended?

**URL:** <https://discuss.elastic.co/t/why-is-multiple-instances-per-node-not-recommended/14595>\
**Category:** Elasticsearch\
**Created:** [November 26, 2013, 11:26am UTC](https://discuss.elastic.co/t/why-is-multiple-instances-per-node-not-recommended/14595 "2013-11-26T11:26:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gunnar\_Gauslaa\_Berge](https://avatars.discourse-cdn.com/v4/letter/g/7bcc69/32.png) [@Gunnar\_Gauslaa\_Berge](https://discuss.elastic.co/u/Gunnar_Gauslaa_Berge)\
**Post date:** [November 26, 2013, 11:26am UTC](https://discuss.elastic.co/t/why-is-multiple-instances-per-node-not-recommended/14595/1 "2013-11-26T11:26:08Z")

</div>

I'm doing consultant work for a large government organization that need  
some guidelines for how to set up ElasticSearch or Solr for their projects.

One topic that has surfaced several times is the validity in running  
several ES instances per node. The use-case is that several smaller  
projects (about 10-15)  
need access to a search cluster with replication and redundancy, so I'm  
guessing that a cluster size of 3-4 nodes will be typical. The argument for  
running several instances per node vs having multiple indices per instance  
is that each project gets more "control" over the environment during events  
such as full  
cluster restarts or version upgrades.

However, I have read that the ES team does not recommend running multiple  
instances per node unless you have tons of memory (to preserve compressed  
oops).  
It would be very helpful to know the reasoning behind this, so why is  
running multiple instances not recommended?

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:** [November 26, 2013, 12:09pm UTC](https://discuss.elastic.co/t/why-is-multiple-instances-per-node-not-recommended/14595/2 "2013-11-26T12:09:34Z")

</div>

Basically because of IO.  
Each node could potentially being a noisy neighbor.

Because of HEAP as well. Instead of needing 8 Gb HEAP per project (it's a random number here - don't take it as a mandatory value!), may be sharing 16 Gb HEAP with 10 projects will be fine?

My 0.05 cents.

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr

Le 26 novembre 2013 at 12:26:12, Gunnar Gauslaa Bergem (gauslaabergem@yahoo.no) a écrit:

I'm doing consultant work for a large government organization that need some guidelines for how to set up ElasticSearch or Solr for their projects.

One topic that has surfaced several times is the validity in running several ES instances per node. The use-case is that several smaller projects (about 10-15)  
need access to a search cluster with replication and redundancy, so I'm guessing that a cluster size of 3-4 nodes will be typical. The argument for  
running several instances per node vs having multiple indices per instance is that each project gets more "control" over the environment during events such as full  
cluster restarts or version upgrades.

However, I have read that the ES team does not recommend running multiple instances per node unless you have tons of memory (to preserve compressed oops).  
It would be very helpful to know the reasoning behind this, so why is running multiple instances not recommended?

--  
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).  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [November 26, 2013, 7:02pm UTC](https://discuss.elastic.co/t/why-is-multiple-instances-per-node-not-recommended/14595/3 "2013-11-26T19:02:44Z")

</div>

You should not start many ES nodes on a single server because

- each JVM adds significant overhead to CPU and OS memory management

- a modern Java 7 JVM scales well even on the largest multi core machine

- a single ES node can scale over all available threads and heap mem of a  
single JVM

Many users run ES not on bare metal, but on a VM. Running multiple JVMs on  
a single VM adds even more overhead.

Jörg

--  
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/CAKdsXoEvAgGgA-fdB4Agsvk96z%2BkF2aseY9NpSGCejbz1zCadw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoEvAgGgA-fdB4Agsvk96z%2BkF2aseY9NpSGCejbz1zCadw%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:04am UTC](https://discuss.elastic.co/t/why-is-multiple-instances-per-node-not-recommended/14595/4 "2017-07-06T02:04:44Z")

</div>


