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 doesn't work for me. I will be happy for any advice.
Have a nice day