# Two nodes on one host

**URL:** <https://discuss.elastic.co/t/two-nodes-on-one-host/123905>\
**Category:** Elasticsearch\
**Created:** [March 14, 2018, 12:42pm UTC](https://discuss.elastic.co/t/two-nodes-on-one-host/123905 "2018-03-14T12:42:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![merito](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/merito/32/24309_2.png) [@merito](https://discuss.elastic.co/u/merito)\
**Post date:** [March 14, 2018, 12:42pm UTC](https://discuss.elastic.co/t/two-nodes-on-one-host/123905/1 "2018-03-14T12:42:58Z")

</div>

Hi,

I want to run two nodes on an one host with 64 or more GBs of RAM. I am able to do this adding parameters in .service file. For the second node it looks like this:

```
...
ExecStart=/usr/share/elasticsearch/bin/elasticsearch -p #{PID_DIR}/elasticsearch-node2.pid -Epath.data=path1 -Epath.logs=path2 -Enode.name=node2
...

```

but I prefer to specify the path to the directory with elasticsearch.yml and jvm.options files. I've tried with changing ES\_PATH\_CONF in service file, in new /etc/default/elasticsearch-node2 file specified with EnvironmentFile in the second node service file but I fail. I run the Elasticsearch 6.2.2 from Debian package. [The way shown in docs](https://www.elastic.co/guide/en/elasticsearch/reference/current/settings.html#config-files-location) doesn't work for me. I will be happy for any advice.

Have a nice day

---

<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 11, 2018, 12:43pm UTC](https://discuss.elastic.co/t/two-nodes-on-one-host/123905/2 "2018-04-11T12:43:03Z")

</div>

Closed on April 11, 2018, 12:43pm UTC

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