# Help with create true ES cluster

**URL:** <https://discuss.elastic.co/t/help-with-create-true-es-cluster/124035>\
**Category:** Elasticsearch\
**Created:** [March 15, 2018, 7:02am UTC](https://discuss.elastic.co/t/help-with-create-true-es-cluster/124035 "2018-03-15T07:02:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![111126](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/111126/32/36818_2.png) [@111126](https://discuss.elastic.co/u/111126)\
**Post date:** [March 15, 2018, 7:02am UTC](https://discuss.elastic.co/t/help-with-create-true-es-cluster/124035/1 "2018-03-15T07:02:37Z")

</div>

Hello!  
I have the next equipment:

virtual machine 1:  
12 CPU E5-2698 v4 @ 2.20GHz with 16Gb memory  
This server contains:  
logstash with -Xms256m -Xmx1g  
elastic (node.master: true node.data: false node.ingest: true) with -Xms4g -Xmx4g  
kibana

hardware machine 1:  
24 CPU X5660 @ 2.80GHz with 96Gb memory and 18Tb filesystem  
This server contains:  
elastic (node.master: false node.data: true node.ingest: true) with -Xms30g -Xmx30g

hardware machine 2:  
16 CPU E5620 @ 2.40GHz with 96Gb memory and 18Tb filesystem  
This server contains:  
elastic (node.master: false node.data: true node.ingest: true) with -Xms30g -Xmx30g

Elastic, logstash and kibana version 6.1.2 with x-pack (basic license)

My index rate 2000-3000 events per second with burst up to 15000-25000 events per second.

When I have burst , My master elastic is down with error "out of memory".

Than I added new elastic node:

virtual machine 2 :  
4 CPU E5-2698 v4 @ 2.20GHz with 8Gb memory  
This server contains:  
elastic (node.master: false node.data: false node.ingest: true) with -Xms6g -Xmx6g

and change elastic on virtual machine 1 to elastic (node.master: true node.data: false node.ingest: true) with -Xms2g -Xmx2g

Is it right?  
Who can give recommendations on how to use my servers more profitably?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [March 15, 2018, 7:14am UTC](https://discuss.elastic.co/t/help-with-create-true-es-cluster/124035/2 "2018-03-15T07:14:18Z")

</div>

You ideally want to have 3 master-eligible nodes in a cluster, so the cluster can continue operating even if 1 master nodes drops. I would therefore recommend the following:

- Make both data nodes master eligible and set `minimum_master_nodes` to `2`.
- Make the smaller node a dedicated master node by setting `node.ingest` to `false`.
- Send all traffic directly to the two nodes holding data. Avoid sending any requests through the small dedicated master node.
- Keep the dedicated ingest node you just added if you feel you need it.

---

<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 12, 2018, 7:15am UTC](https://discuss.elastic.co/t/help-with-create-true-es-cluster/124035/3 "2018-04-12T07:15:00Z")

</div>

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