# Cluster of one master and two data nodes

**URL:** <https://discuss.elastic.co/t/cluster-of-one-master-and-two-data-nodes/92287>\
**Category:** Elasticsearch\
**Created:** [July 7, 2017, 2:42pm UTC](https://discuss.elastic.co/t/cluster-of-one-master-and-two-data-nodes/92287 "2017-07-07T14:42:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajayrc](https://avatars.discourse-cdn.com/v4/letter/a/c77e96/32.png) [@ajayrc](https://discuss.elastic.co/u/ajayrc)\
**Post date:** [July 7, 2017, 2:42pm UTC](https://discuss.elastic.co/t/cluster-of-one-master-and-two-data-nodes/92287/1 "2017-07-07T14:42:13Z")

</div>

can anyone help me yml file configuration for creating cluster of three nodes 1-master 2-data

---

<div class="post-metadata">

**Author:** ![SKumarMN](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/skumarmn/32/27537_2.png) [@SKumarMN](https://discuss.elastic.co/u/SKumarMN)\
**Post date:** [July 7, 2017, 2:49pm UTC](https://discuss.elastic.co/t/cluster-of-one-master-and-two-data-nodes/92287/2 "2017-07-07T14:49:05Z")

</div>

You could have 3 master-data nodes itselfs which would help than 1 master and 2 data nodes..

If you still want it  
Have the same cluster name for all the three nodes(same for all three nodes)  
[cluster.name](http://cluster.name): "mycluster"

in master node set  
node.master: true  
node.data : false

In data nodes set  
node.master:false  
node.data: true

[https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-node.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-node.html)

---

<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:** [August 4, 2017, 2:49pm UTC](https://discuss.elastic.co/t/cluster-of-one-master-and-two-data-nodes/92287/3 "2017-08-04T14:49:12Z")

</div>

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