As an experiment I would like to run 2 instances of ES on each server - I know this is not normally recommended. My servers has 128GB RAM and 12 processors (24 cores) so I would like to try running two instances.
I have made the changes to the yml files - elasticsearch.1.yml and elasticsearch.2.yml and I have put them in their own directories with the other files
My problem is that I can not work out how to start the two instances. I am running Centos 6.9 and ES 6.0.
When I try from the command line I get permission errors - either I do not have permission or I can not run as root. In this case how should I start the two instances?
I usually use "service elasticsearch start" but to get both instances I will need a new approach?
Thanks
you can start the elasticsearch as a service using script (startup.sh) which is created in elasticsearch installation directory as:
sh startup.sh
and if there is permission issue make sure elasticsearch folder have permission
chmod 777 /etc/elasticsearch
I have successfully finished this, so I will close this off as "solved".
Here is a summary of things I did.
Copied and edited files to:
/etc/init.d/elasticsearch1
/etc/init.d/elasticsearch2
/etc/sysconfig/elasticsearch1
/etc/sysconfig/elasticsearch2
/etc/elasticseach1/config1/elasticsearch.yml
/etc/elasticseach1/config2/elasticsearch.yml
To start and stop the instances, I use "service elasticsearch1 start" etc
I split my 12 disks per node between the two instances, 6 disks/pathsfor each instance
As I have two ethernet adapters I assigned on unique IP to each instance
All working nicely and I am bulk loading in the 12,000 - 15,000/s region, being bound by the I/O on the spinning disks. Its steady and useable so I am happy.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.