Two separate nodes on the same machine


(Alina Frey) #1

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?


(Christoph) #2

Hi,

Take a look at the node.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 environment variable.


(system) #3

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