# How install multiple service ES on the same server

**URL:** <https://discuss.elastic.co/t/how-install-multiple-service-es-on-the-same-server/36192>\
**Category:** Elasticsearch\
**Created:** [December 2, 2015, 3:24pm UTC](https://discuss.elastic.co/t/how-install-multiple-service-es-on-the-same-server/36192 "2015-12-02T15:24:18Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Clement\_Ros](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/clement_ros/32/6198_2.png) [@Clement\_Ros](https://discuss.elastic.co/u/Clement_Ros)\
**Post date:** [December 2, 2015, 3:24pm UTC](https://discuss.elastic.co/t/how-install-multiple-service-es-on-the-same-server/36192/1 "2015-12-02T15:24:18Z")

</div>

Hi,

I use ES 2.1 and CentOS 7.

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.

Someone can help me ?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [December 2, 2015, 3:45pm UTC](https://discuss.elastic.co/t/how-install-multiple-service-es-on-the-same-server/36192/2 "2015-12-02T15:45:14Z")

</div>

Do you have more than 64gb of RAM which would explain why you want to achieve this?

---

<div class="post-metadata">

**Author:** ![Clement\_Ros](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/clement_ros/32/6198_2.png) [@Clement\_Ros](https://discuss.elastic.co/u/Clement_Ros)\
**Post date:** [December 2, 2015, 4:22pm UTC](https://discuss.elastic.co/t/how-install-multiple-service-es-on-the-same-server/36192/3 "2015-12-02T16:22:55Z")

</div>

Yes, we have 128Gb of RAM.

---

<div class="post-metadata">

**Author:** ![ericm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ericm/32/6330_2.png) [@ericm](https://discuss.elastic.co/u/ericm)\
**Post date:** [December 2, 2015, 4:47pm UTC](https://discuss.elastic.co/t/how-install-multiple-service-es-on-the-same-server/36192/4 "2015-12-02T16:47:07Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [December 2, 2015, 4:54pm UTC](https://discuss.elastic.co/t/how-install-multiple-service-es-on-the-same-server/36192/5 "2015-12-02T16:54:23Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ericm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ericm/32/6330_2.png) [@ericm](https://discuss.elastic.co/u/ericm)\
**Post date:** [December 2, 2015, 5:07pm UTC](https://discuss.elastic.co/t/how-install-multiple-service-es-on-the-same-server/36192/6 "2015-12-02T17:07:49Z")

</div>

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...

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 5, 2017, 11:34pm UTC](https://discuss.elastic.co/t/how-install-multiple-service-es-on-the-same-server/36192/7 "2017-07-05T23:34:07Z")

</div>


