# ES 5.2, need proper production setup advice

**URL:** <https://discuss.elastic.co/t/es-5-2-need-proper-production-setup-advice/79999>\
**Category:** Elasticsearch\
**Created:** [March 25, 2017, 5:13pm UTC](https://discuss.elastic.co/t/es-5-2-need-proper-production-setup-advice/79999 "2017-03-25T17:13:43Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Username1](https://avatars.discourse-cdn.com/v4/letter/u/ee59a6/32.png) [@Username1](https://discuss.elastic.co/u/Username1)\
**Post date:** [March 25, 2017, 5:13pm UTC](https://discuss.elastic.co/t/es-5-2-need-proper-production-setup-advice/79999/1 "2017-03-25T17:13:43Z")

</div>

I have 3 separate web applications, for each of which I am planning to use Elasticsearch 5.2 as a full-text search engine. All apps are physically located on the same hardware. Hardware capabilities are the following: 21-core CPU, 40 Gb of RAM (10 GB are used by webapps, thus 30 are free), about 200 GB of free disk space. I am limited to only this hardware, therefore I cannot provide separate servers for elasticseach instances. Considering these conditions, which type of setup I should choose? I am assuming that for each webapp I would have to launch separate elastic instance, right? And how do I not run out of available memory, if I do so? Maybe it is possible to run ES with memory usage constraints and at the same time not seriously affect search performance?

---

<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:** [March 25, 2017, 5:30pm UTC](https://discuss.elastic.co/t/es-5-2-need-proper-production-setup-advice/79999/2 "2017-03-25T17:30:03Z")

</div>

No. One single node per machine is preferable.

---

<div class="post-metadata">

**Author:** ![Username1](https://avatars.discourse-cdn.com/v4/letter/u/ee59a6/32.png) [@Username1](https://discuss.elastic.co/u/Username1)\
**Post date:** [March 25, 2017, 5:38pm UTC](https://discuss.elastic.co/t/es-5-2-need-proper-production-setup-advice/79999/3 "2017-03-25T17:38:42Z")

</div>

So the minimum viable setup for 3 separate webapps is to move each webapp onto the separate machine and launch ES node for each, OR second - to launch one machine for each ES node and host webapps somewhere else, am I right?

---

<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:** [March 25, 2017, 5:55pm UTC](https://discuss.elastic.co/t/es-5-2-need-proper-production-setup-advice/79999/4 "2017-03-25T17:55:20Z")

</div>

You wrote;

> [@Username1](#):
>
> I am limited to only this hardware, therefore I cannot provide separate servers for elasticseach instances.

So based on that my answer is only one node but one index per application (web app).

If you can other hardware, I'd dedicate machines to elasticsearch. But it depends on what kind of usage you have as well. I mean that it can be fine to share a physical machine with a webapp IMO depending on the traffic you get.

My 2 cents

---

<div class="post-metadata">

**Author:** ![nugusbayevkk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nugusbayevkk/32/126683_2.png) [@nugusbayevkk](https://discuss.elastic.co/u/nugusbayevkk)\
**Post date:** [March 25, 2017, 5:59pm UTC](https://discuss.elastic.co/t/es-5-2-need-proper-production-setup-advice/79999/5 "2017-03-25T17:59:40Z")

</div>

Hello, in my case i run on 1 server: elasticsearch node(2.3.4) + tomcat server,  
and in another server - second elastcisearch node(2.3.4)+tomcat server.  
ELK has been working in cluster.  
i recommend you make your test environment accordingly productive.

---

<div class="post-metadata">

**Author:** ![Username1](https://avatars.discourse-cdn.com/v4/letter/u/ee59a6/32.png) [@Username1](https://discuss.elastic.co/u/Username1)\
**Post date:** [March 25, 2017, 6:24pm UTC](https://discuss.elastic.co/t/es-5-2-need-proper-production-setup-advice/79999/6 "2017-03-25T18:24:23Z")

</div>

Ok, thanks. What if I launch only one node, that would contain indexes for three webapps? The total number of indexed database rows is about 2 millions.

---

<div class="post-metadata">

**Author:** ![nugusbayevkk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nugusbayevkk/32/126683_2.png) [@nugusbayevkk](https://discuss.elastic.co/u/nugusbayevkk)\
**Post date:** [March 25, 2017, 7:56pm UTC](https://discuss.elastic.co/t/es-5-2-need-proper-production-setup-advice/79999/7 "2017-03-25T19:56:22Z")

</div>

in my opinion, you should tested, necessary knowledges you will gain only with practice or from BigBrother 🙂 .

it won't take many times

---

<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:** [April 22, 2017, 7:56pm UTC](https://discuss.elastic.co/t/es-5-2-need-proper-production-setup-advice/79999/8 "2017-04-22T19:56:28Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
