# Two separate nodes on the same machine

**URL:** <https://discuss.elastic.co/t/two-separate-nodes-on-the-same-machine/153457>\
**Category:** Elasticsearch\
**Created:** [October 22, 2018, 6:15pm UTC](https://discuss.elastic.co/t/two-separate-nodes-on-the-same-machine/153457 "2018-10-22T18:15:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alina.frey](https://avatars.discourse-cdn.com/v4/letter/a/c57346/32.png) [@alina.frey](https://discuss.elastic.co/u/alina.frey)\
**Post date:** [October 22, 2018, 6:15pm UTC](https://discuss.elastic.co/t/two-separate-nodes-on-the-same-machine/153457/1 "2018-10-22T18:15:35Z")

</div>

Was wondering if I can run two separate ES nodes using the same ES folder. To run the first node, I have a service that runs elasticsearch.exe (using the configuration specified in elasticsearch.yml). Can I use the same elasticsearch.exe with a second configuration file? Or do I need to have a second ES folder with a separate elasticsearch.exe?

---

<div class="post-metadata">

**Author:** ![cbuescher](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cbuescher/32/60402_2.png) [@cbuescher](https://discuss.elastic.co/u/cbuescher)\
**Post date:** [October 22, 2018, 7:16pm UTC](https://discuss.elastic.co/t/two-separate-nodes-on-the-same-machine/153457/2 "2018-10-22T19:16:26Z")

</div>

Hi,

Take a look at the [node.max\_local\_storage\_nodes](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-node.html#max-local-storage-nodes) setting. It is intended for testing and development e.g. on a developers machine, not for use in production. If you use it with the same configuration, the logs of both nodes will be written to the same file though. You can also start a second node using a different config file using the [ES\_PATH\_CONF](https://www.elastic.co/guide/en/elasticsearch/reference/6.0/settings.html) environment variable.

---

<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:** [November 19, 2018, 7:20pm UTC](https://discuss.elastic.co/t/two-separate-nodes-on-the-same-machine/153457/3 "2018-11-19T19:20:39Z")

</div>

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