# Elasticsearch - One node

**URL:** <https://discuss.elastic.co/t/elasticsearch-one-node/59339>\
**Category:** Elasticsearch\
**Created:** [August 30, 2016, 4:37pm UTC](https://discuss.elastic.co/t/elasticsearch-one-node/59339 "2016-08-30T16:37:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![veve90](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/veve90/32/6517_2.png) [@veve90](https://discuss.elastic.co/u/veve90)\
**Post date:** [August 30, 2016, 4:37pm UTC](https://discuss.elastic.co/t/elasticsearch-one-node/59339/1 "2016-08-30T16:37:38Z")

</div>

Hello,

I just read the article [https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-node.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-node.html)  
and it is not very clear to me, what configuration we should have for a cluster with one machine (the same machien that does client, master and data)...

node.master: ?  
node.data: ?

Thank you!

Alina

---

<div class="post-metadata">

**Author:** ![thn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thn/32/8061_2.png) [@thn](https://discuss.elastic.co/u/thn)\
**Post date:** [August 30, 2016, 6:02pm UTC](https://discuss.elastic.co/t/elasticsearch-one-node/59339/2 "2016-08-30T18:02:37Z")

</div>

you can set both to TRUE to have a single node cluster.

---

<div class="post-metadata">

**Author:** ![woodenmo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/woodenmo/32/11691_2.png) [@woodenmo](https://discuss.elastic.co/u/woodenmo)\
**Post date:** [August 30, 2016, 6:03pm UTC](https://discuss.elastic.co/t/elasticsearch-one-node/59339/3 "2016-08-30T18:03:19Z")

</div>

Hello, Alina;  
I am sure you have to have both in a single-node cluster. Without a master node, the cluster will not form (no cluster management), and without a data node, shards will remain unassigned (no node to store them).  
Cheers,  
woodenmo

---

<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:** [August 30, 2016, 8:20pm UTC](https://discuss.elastic.co/t/elasticsearch-one-node/59339/4 "2016-08-30T20:20:15Z")

</div>

By default a node is both a master and a data node, so you shouldn't need to do anything.

It mentions that at the bottom of the first section;

> By default a node is both a master-eligible node and a data node.

---

<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 5, 2017, 10:23pm UTC](https://discuss.elastic.co/t/elasticsearch-one-node/59339/5 "2017-07-05T22:23:53Z")

</div>


