Dmitry Belokur Dmitry Belokur - 3 months ago 11
YAML Question

Choosing configuration file to start elastic cluster

I have two-node cluster on one machine and one config file (elasticsearch.yml). Is it possible to create another .yml-config file and start every instance with different config-file? For example, i want run cluster on two ports (localhost:9200 and localhost:9201) on the same time.

I can't find command-line API for starting elastic-cluster (config-file as an argument?).

Val Val
Answer

You should be able to start your second ES instance with the -Epath.conf setting on the command line and point to another folder where you have your second elasticsearch.yml configuration file

./bin/elasticsearch -Epath.conf=/path/to/my/second/config/
Comments