I want to install multiple nodes on one server.
I used to create multiple elasticsearch file in /usr/lib/systemd/system, to create multiple services ES, but in 2.1 that doesn't work.
I can't find a way to install multiple ES as a service with systemd.
Hi David,
Thank you for reply.
I work with Clement. We currently have a ES 1.7 cluster with multiple nodes instances on each physical machine. This setup works fine even if it's not the optimal architecture. Each instances has its own config file in /etc/elasticsearch and we created a service startup config file for each ES instances in /usr/lib/systemd/system. The es.config parameter allowed us to specify a different config file for each instances.
Clement has to migrate under 2.1 and we encounter some issues using our current settings.
Any suggestions for multiple nodes on the same box will be great.
Thank you
So basically you have to create one config dir per instance, one data dire per instance, one log dir per instance.
I guess you need to "hack" the standard scripts to do so.
I have a little knowledge on that part so I can't really help.
Thank you. It works.
I now have a /etc/elasticsearch-node{n} and /var/log/elasticsearch-node{n} directories for each instances.
Had to chown elasticsearch. on these directories and create a service startup script for each instances in /usr/lib/systemd/system, and tweak the settings to point on the right dir.
Trivial actually. Sorry for not thinking about using different directory. It's the end of the day, getting tired I guess...
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.