# Regarding node architecture initial setup

**URL:** <https://discuss.elastic.co/t/regarding-node-architecture-initial-setup/21535>\
**Category:** Elasticsearch\
**Created:** [January 8, 2015, 9:53am UTC](https://discuss.elastic.co/t/regarding-node-architecture-initial-setup/21535 "2015-01-08T09:53:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phani\_Nadiminti](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/phani_nadiminti/32/45381_2.png) [@Phani\_Nadiminti](https://discuss.elastic.co/u/Phani_Nadiminti)\
**Post date:** [January 8, 2015, 9:53am UTC](https://discuss.elastic.co/t/regarding-node-architecture-initial-setup/21535/1 "2015-01-08T09:53:35Z")

</div>

Hi All

```
 I have chosen to establish 4 nodes in my cluster. I read concept of 

```

dedicated master nodes and only data holding nodes in elastic search.please  
explain me briefly how can i establish cluster by using the above four  
nodes.

suppose if i have chosen N/2+1 for 4 nodes the minimum no of master  
nodes would be 3 so one node left in my cluster. master nodes only managing  
and indexing data to other nodes i.e data nodes. to implement replica do we  
need 5 nodes because i left with only 1 data node where i can keep replica?

```
 other wise will the primary shard resides on any one of master node 

```

and replica will be hold my data node or please explain me how to design  
above scenarios with my four nodes in cluster.

Thanks

phani

--  
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/ba85ef3c-afc8-45b9-b1b7-e8dbdd32313c%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/ba85ef3c-afc8-45b9-b1b7-e8dbdd32313c%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![radu\_gheorghe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/radu_gheorghe/32/556_2.png) [@radu\_gheorghe](https://discuss.elastic.co/u/radu_gheorghe)\
**Post date:** [January 8, 2015, 1:14pm UTC](https://discuss.elastic.co/t/regarding-node-architecture-initial-setup/21535/2 "2015-01-08T13:14:16Z")

</div>

Hello Phani,

Usually the dedicated masters are much smaller than the data nodes, because  
they have much less work to do. If the 4 nodes you're talking about are  
equal, it might be inefficient to add a 5th so you can have 2 data and 3  
master nodes. Maybe for the same budget of adding the 5th you can add 3  
small master nodes and keep the 4 as data nodes. Then you'd have  
minimum\_master\_nodes=2. This is the ideal case IMO.

If you don't have lots of data, you can have a setup with 3 nodes: all  
master-eligible, only two of them hold data and the 3rd would be a  
dedicated master that would act like a tie breaker. The downside is when  
both data nodes are super-busy that you won't have a cluster (the tie  
breaker won't be able to get a quorum). But then again, if both your data  
nodes are unresponsive, having a working cluster has little value.

You can extend this setup with your 4 nodes: all master-eligible, 3 data  
and one dedicated master. You'll have to increase minimum\_master\_nodes to 3  
(otherwise you can have a split-brain). Your cluster will still tolerate  
one node going down as in the previous case, but you'll have more capacity.  
This might be the best bet (capacity vs safety) if you absolutely have to  
stick with the 4 servers.

## Best regards, Radu

Performance Monitoring \* Log Analytics \* Search Analytics  
Solr & Elasticsearch Support \* [http://sematext.com/](http://sematext.com/)

On Thu, Jan 8, 2015 at 11:53 AM, [phani.nadiminti@goktree.com](mailto:phani.nadiminti@goktree.com) wrote:

> Hi All
> 
> ```
> I have chosen to establish 4 nodes in my cluster. I read concept of
> 
> ```
> 
> dedicated master nodes and only data holding nodes in Elasticsearch.please  
> explain me briefly how can i establish cluster by using the above four  
> nodes.
> 
> suppose if i have chosen N/2+1 for 4 nodes the minimum no of master  
> nodes would be 3 so one node left in my cluster. master nodes only managing  
> and indexing data to other nodes i.e data nodes. to implement replica do we  
> need 5 nodes because i left with only 1 data node where i can keep replica?
> 
> ```
> other wise will the primary shard resides on any one of master node
> 
> ```
> 
> and replica will be hold my data node or please explain me how to design  
> above scenarios with my four nodes in cluster.
> 
> Thanks
> 
> phani
> 
> --  
> 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/ba85ef3c-afc8-45b9-b1b7-e8dbdd32313c%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/ba85ef3c-afc8-45b9-b1b7-e8dbdd32313c%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/ba85ef3c-afc8-45b9-b1b7-e8dbdd32313c%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/ba85ef3c-afc8-45b9-b1b7-e8dbdd32313c%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/CAHXA0\_0WMSjCycEsje0BYMm-oZXNTg\_MQLe24RcqyFThXC7RbA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAHXA0_0WMSjCycEsje0BYMm-oZXNTg_MQLe24RcqyFThXC7RbA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Phani\_Nadiminti](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/phani_nadiminti/32/45381_2.png) [@Phani\_Nadiminti](https://discuss.elastic.co/u/Phani_Nadiminti)\
**Post date:** [January 27, 2015, 10:07am UTC](https://discuss.elastic.co/t/regarding-node-architecture-initial-setup/21535/3 "2015-01-27T10:07:43Z")

</div>

Hi Radu,

Thanks for the suggestion and based on the criteria i designed one  
architecture using four nodes please suggest me the best way to arrange i  
satisfied all conditions in my architecture.

node1 : Dedicated master  
node2 : mater and data  
node3: master and data  
node 4: dedicated data node

```
      Satisfied n/2+1 minimum number of master nodes would be 3. and 

```

for fail over of data nodes i arranged node2,node3,node4. because i can  
keep 2 replicas to increase search performance that is the reason i  
allotted node2,3,4 as data nodes.

```
     on which node I have to set the minimum no of master nodes 

```

settings?

```
        please suggest me is this way is correct to arrange nodes?

```

Thanks  
phani

On Thursday, January 8, 2015 at 3:23:35 PM UTC+5:30, [phani.n...@goktree.com](mailto:phani.n...@goktree.com)  
wrote:

> Hi All
> 
> ```
> I have chosen to establish 4 nodes in my cluster. I read concept of 
> 
> ```
> 
> dedicated master nodes and only data holding nodes in Elasticsearch.please  
> explain me briefly how can i establish cluster by using the above four  
> nodes.
> 
> suppose if i have chosen N/2+1 for 4 nodes the minimum no of master  
> nodes would be 3 so one node left in my cluster. master nodes only managing  
> and indexing data to other nodes i.e data nodes. to implement replica do we  
> need 5 nodes because i left with only 1 data node where i can keep replica?
> 
> ```
> other wise will the primary shard resides on any one of master node 
> 
> ```
> 
> and replica will be hold my data node or please explain me how to design  
> above scenarios with my four nodes in cluster.
> 
> Thanks
> 
> phani

--  
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/21e06e81-82fe-4a6e-b29c-21977bf14315%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/21e06e81-82fe-4a6e-b29c-21977bf14315%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:** [January 27, 2015, 10:18am UTC](https://discuss.elastic.co/t/regarding-node-architecture-initial-setup/21535/4 "2015-01-27T10:18:29Z")

</div>

Not much point having master and data only nodes for such a small cluster.  
Just make them all master and data and then set min masters to 3.

On 27 January 2015 at 21:07, [phani.nadiminti@goktree.com](mailto:phani.nadiminti@goktree.com) wrote:

> Hi Radu,
> 
> Thanks for the suggestion and based on the criteria i designed one  
> architecture using four nodes please suggest me the best way to arrange i  
> satisfied all conditions in my architecture.
> 
> node1 : Dedicated master  
> node2 : mater and data  
> node3: master and data  
> node 4: dedicated data node
> 
> ```
> Satisfied n/2+1 minimum number of master nodes would be 3. and
> 
> ```
> 
> for fail over of data nodes i arranged node2,node3,node4. because i can  
> keep 2 replicas to increase search performance that is the reason i  
> allotted node2,3,4 as data nodes.
> 
> ```
> on which node I have to set the minimum no of master nodes
> 
> ```
> 
> settings?
> 
> ```
> please suggest me is this way is correct to arrange nodes?
> 
> ```
> 
> Thanks  
> phani
> 
> On Thursday, January 8, 2015 at 3:23:35 PM UTC+5:30,  
> [phani.n...@goktree.com](mailto:phani.n...@goktree.com) wrote:
> 
> > Hi All
> > 
> > ```
> > I have chosen to establish 4 nodes in my cluster. I read concept of
> > 
> > ```
> > 
> > dedicated master nodes and only data holding nodes in Elasticsearch.please  
> > explain me briefly how can i establish cluster by using the above four  
> > nodes.
> > 
> > suppose if i have chosen N/2+1 for 4 nodes the minimum no of master  
> > nodes would be 3 so one node left in my cluster. master nodes only managing  
> > and indexing data to other nodes i.e data nodes. to implement replica do we  
> > need 5 nodes because i left with only 1 data node where i can keep replica?
> > 
> > ```
> > other wise will the primary shard resides on any one of master node
> > 
> > ```
> > 
> > and replica will be hold my data node or please explain me how to design  
> > above scenarios with my four nodes in cluster.
> > 
> > Thanks
> > 
> > phani
> 
> --  
> 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/21e06e81-82fe-4a6e-b29c-21977bf14315%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/21e06e81-82fe-4a6e-b29c-21977bf14315%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/21e06e81-82fe-4a6e-b29c-21977bf14315%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/21e06e81-82fe-4a6e-b29c-21977bf14315%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/CAEYi1X-bLtYXY%3DkSRk96WhVTqfpYfWi8cEUPo6gw2eWzMRyjJw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X-bLtYXY%3DkSRk96WhVTqfpYfWi8cEUPo6gw2eWzMRyjJw%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, 12:36am UTC](https://discuss.elastic.co/t/regarding-node-architecture-initial-setup/21535/5 "2017-07-06T00:36:28Z")

</div>


