# Nodes for Elasticsearch

**URL:** <https://discuss.elastic.co/t/nodes-for-elasticsearch/79335>\
**Category:** Elasticsearch\
**Created:** [March 21, 2017, 2:06am UTC](https://discuss.elastic.co/t/nodes-for-elasticsearch/79335 "2017-03-21T02:06:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![arianayay](https://avatars.discourse-cdn.com/v4/letter/a/f4b2a3/32.png) [@arianayay](https://discuss.elastic.co/u/arianayay)\
**Post date:** [March 21, 2017, 2:06am UTC](https://discuss.elastic.co/t/nodes-for-elasticsearch/79335/1 "2017-03-21T02:06:10Z")

</div>

Hi,

I would like to know if 3-node cluster is the desired setup for Elasticsearch? I have this type of setup since I'm configuring X-Pack for this cluster.

Cluster: TestES

[node.name](http://node.name): ENode1  
node.master: true  
node.data: false  
node.ingest: false

[node.name](http://node.name): ENode2  
node.master: true  
node.data: true  
node.ingest: false

[node.name](http://node.name): ENode3  
node.master: false  
node.data: true  
node.ingest: true

But If have a 2-node cluster there should be two masters and 2 data nodes? or is it possible to have this type of setup..

Cluster: TestES

[node.name](http://node.name): ENode1  
node.master: master  
node.data: true  
node.ingest: false

[node.name](http://node.name): ENode2  
node.master: true  
node.data: true  
node.ingest: true

Will this affect the performance of Elasticsearch if cluster is only 2-node?

Thanks!

---

<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 21, 2017, 6:23am UTC](https://discuss.elastic.co/t/nodes-for-elasticsearch/79335/2 "2017-03-21T06:23:42Z")

</div>

Set all 3 nodes master:true and don't use only 2 nodes to avoid cluster stopping or split brain issues.

---

<div class="post-metadata">

**Author:** ![arianayay](https://avatars.discourse-cdn.com/v4/letter/a/f4b2a3/32.png) [@arianayay](https://discuss.elastic.co/u/arianayay)\
**Post date:** [March 21, 2017, 6:39am UTC](https://discuss.elastic.co/t/nodes-for-elasticsearch/79335/3 "2017-03-21T06:39:56Z")

</div>

Hi David,

Thanks for the advise 🙂

---

<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 18, 2017, 6:40am UTC](https://discuss.elastic.co/t/nodes-for-elasticsearch/79335/4 "2017-04-18T06:40:05Z")

</div>

Closed on April 18, 2017, 6:40am UTC

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