Run multiple Elasticsearch instance on the same server

(Willy ROZAN) #1


i have an ES server with an instance already installed and running.
That one has been deployed from rpm file (v5.6.4)

current yml file :

#cluster nakisa
#node leasing
#path /data/ESData
path.logs: /data/ESLogs
bootstrap.memory_lock: true
http.port: 9200
http.enabled: false

according ES guide, we can only ES using this command : systemctl start elasticsearch.service
I mean service name cannot be changed as it already defined in the source (in rpm package).

I am looking for a way to create a new instance (with a different name) i could host on the same server.

is it possible to start in parallel a new instance with a different name ?
i would for example save files in /etc/elasticsearch_sim/

do you have any suggestion ?

thanks for you help




I'm running up to 6 instances of ES on the same machine. I use Puppet and the official Puppet module from Elastic to do this. OS is Debian but I would think RedHat/Centos are supported too.

This is what /etc/elasticsearch looks like

/etc/elasticsearch # find .

Each instance has it's on SystemD unit file

/etc/systemd # find . -name "elastic"

The ES binary is just installed once

As long as you run each instance on it's own port you should be fine :slight_smile:

(system) #3

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