# 3 nodes cluster arhitecture

**URL:** <https://discuss.elastic.co/t/3-nodes-cluster-arhitecture/18041>\
**Category:** Elasticsearch\
**Created:** [June 11, 2014, 11:56am UTC](https://discuss.elastic.co/t/3-nodes-cluster-arhitecture/18041 "2014-06-11T11:56:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ciprian\_2](https://avatars.discourse-cdn.com/v4/letter/c/9dc877/32.png) [@Ciprian\_2](https://discuss.elastic.co/u/Ciprian_2)\
**Post date:** [June 11, 2014, 11:56am UTC](https://discuss.elastic.co/t/3-nodes-cluster-arhitecture/18041/1 "2014-06-11T11:56:13Z")

</div>

Hi!

My application is reading data from a Sqs and pushing it to elasticseach.  
This is done from 2 consumers each with a thread pool of 5 threads. That  
means 10 threads who are inserting/deleting documents in elasticsearch.  
From other web application the inserted data is read.  
I want to create a cluster with 3 nodes(4g of ram each) for doing that. I  
was thinking for the next arhitecture :

- one master node
- one master/data node
- one data node

/etc/elasticsearch/elasticsearch.yml

- 

```
discovery.zen.minimum_master_nodes*: 2

```

bootstrap.mlockall=true

/etc/default/elasticsearch  
ES\_HEAP\_SIZE=2g  
MAX\_LOCKED\_MEMORY=unlimited

It is enough for the cluster? Should I add another server for the non  
data node?

--  
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/013e5c76-70a6-405c-a573-bbb165f86adb%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/013e5c76-70a6-405c-a573-bbb165f86adb%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 11, 2014, 11:58am UTC](https://discuss.elastic.co/t/3-nodes-cluster-arhitecture/18041/2 "2014-06-11T11:58:49Z")

</div>

For that size just make them all data+master nodes. You really want n/2+1  
masters, where n = number of nodes, so that you prevent split-brain from  
occurring, and having all 3 as master will provide that.

Just set ES\_HEAP\_SIZE in the defaults, you don't need to worry about  
anything else.

Regards,  
Mark Walkom

Infrastructure Engineer  
Campaign Monitor  
email: [markw@campaignmonitor.com](mailto:markw@campaignmonitor.com)  
web: [www.campaignmonitor.com](http://www.campaignmonitor.com)

On 11 June 2014 21:56, Ciprian [turcanciprian87@gmail.com](mailto:turcanciprian87@gmail.com) wrote:

> Hi!
> 
> My application is reading data from a Sqs and pushing it to  
> elasticseach. This is done from 2 consumers each with a thread pool of 5  
> threads. That means 10 threads who are inserting/deleting documents in  
> elasticsearch. From other web application the inserted data is read.  
> I want to create a cluster with 3 nodes(4g of ram each) for doing that.  
> I was thinking for the next arhitecture :
> 
> - one master node
> - one master/data node
> - one data node
> 
> /etc/elasticsearch/elasticsearch.yml
> 
> - 
> 
> ```
> discovery.zen.minimum_master_nodes*: 2
> 
> ```
> 
> bootstrap.mlockall=true
> 
> /etc/default/elasticsearch  
> ES\_HEAP\_SIZE=2g  
> MAX\_LOCKED\_MEMORY=unlimited
> 
> It is enough for the cluster? Should I add another server for the non  
> data node?
> 
> --  
> 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/013e5c76-70a6-405c-a573-bbb165f86adb%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/013e5c76-70a6-405c-a573-bbb165f86adb%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/013e5c76-70a6-405c-a573-bbb165f86adb%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/013e5c76-70a6-405c-a573-bbb165f86adb%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/CAEM624a1OrxbP0rkB3AB6dzUKOhG0g\_duuZ1yMbHN3T\_7jHG\_w%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEM624a1OrxbP0rkB3AB6dzUKOhG0g_duuZ1yMbHN3T_7jHG_w%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 1:23am UTC](https://discuss.elastic.co/t/3-nodes-cluster-arhitecture/18041/3 "2017-07-06T01:23:19Z")

</div>


