# Create a new node

**URL:** https://discuss.elastic.co/t/create-a-new-node/267782
**Category:** Elasticsearch
**Created:** [March 19, 2021, 9:47am UTC](https://discuss.elastic.co/t/create-a-new-node/267782 "2021-03-19T09:47:53Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Weathmious](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weathmious/32/70916_2.png) [@Weathmious](https://discuss.elastic.co/u/Weathmious)
#### Post date: [March 19, 2021, 9:47am UTC](https://discuss.elastic.co/t/create-a-new-node/267782/1 "2021-03-19T09:47:53Z")

</div>

Hello

I currently have my elasticsearch service that has only one node, and I would like to do a second one (on the same server), but I really can’t figure out how to do it.

The goal would be to add a "hot" node and a "cold" node

I was told to add this:

![image](https://us1.discourse-cdn.com/elastic/original/3X/3/5/3504eead09abfbde1ada6768c010077cd53732ad.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/a/2acc540f5a27c61ed7d52474e5c2e17f489c27ad.png)

The thing is, as much as I’ve looked, I don’t really know where to add it. Do you have to put these two lines in the/etc/elastisearch/elasticsearch.yml file and the nodes will be created after a restart of the service?

Thank you in advance

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [March 22, 2021, 12:55am UTC](https://discuss.elastic.co/t/create-a-new-node/267782/2 "2021-03-22T00:55:28Z")

</div>

If you want to run two nodes on the same host then you will need to use docker or something else to make sure they run with their own config files.

---

<div class="post-metadata">

### Author: ![Weathmious](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weathmious/32/70916_2.png) [@Weathmious](https://discuss.elastic.co/u/Weathmious)
#### Post date: [March 22, 2021, 2:02pm UTC](https://discuss.elastic.co/t/create-a-new-node/267782/3 "2021-03-22T14:02:41Z")

</div>

Hi @warkolm , thank for the awnser

I can't use docker, my server is on a nutanix vm. So it's not possible to have two nodes on the same server?

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [March 22, 2021, 2:28pm UTC](https://discuss.elastic.co/t/create-a-new-node/267782/4 "2021-03-22T14:28:51Z")

</div>

> [@Weathmious](#):
>
> I can't use docker, my server is on a nutanix vm. So it's not possible to have two nodes on the same server?

Without docker you will need to install another elasticsearch instance using the `.tar.gz` file.

You can follow this part of the [documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/targz.html).

You will need to use different directories for everything, configuration, logs and data.

Besides that, running a hot node and a warm node in the same server does not make much sense, since the resources will be shared between the nodes, there will be no difference between the nodes.

What do you want to do with the hot and warm nodes?

---

<div class="post-metadata">

### Author: ![Weathmious](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weathmious/32/70916_2.png) [@Weathmious](https://discuss.elastic.co/u/Weathmious)
#### Post date: [March 24, 2021, 1:06pm UTC](https://discuss.elastic.co/t/create-a-new-node/267782/5 "2021-03-24T13:06:08Z")

</div>

@leandrojmp, the goal would be to store 1 year of logs on graylog. The problem is that it would go on more than 10T of storage which is not conceivable

I don’t know yet exactly how I’m going to solve this problem, but setting up this architecture will be a good start for me to better manage the data

Thank you

---

<div class="post-metadata">

### Author: ![Weathmious](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weathmious/32/70916_2.png) [@Weathmious](https://discuss.elastic.co/u/Weathmious)
#### Post date: [March 25, 2021, 3:14pm UTC](https://discuss.elastic.co/t/create-a-new-node/267782/6 "2021-03-25T15:14:36Z")

</div>

@leandrojmp fter reflexion, the goal would be to apply "best\_compression" to the cold node, but so how to duplicate the file `/etc/elasticsearch/elasticsearch.yml` for example?

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [March 25, 2021, 4:08pm UTC](https://discuss.elastic.co/t/create-a-new-node/267782/7 "2021-03-25T16:08:20Z")

</div>

You need to install another instance using the `.tar.gz` file, according to the [documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/targz.html).

The `/etc/elasticsearch/` directory and files are used by the packaged installation, `.rpm` or `.deb`, you won't use this directory, you need to install the `.tar.gz` in another directory, for example, `/opt/elasticsearch`.

Then you will need to edit `elasticsearch.yml` in this installation and configure your new node, just remember that the data dir and log dir should be different, you will also need to create a `systemd` service if you want to run this new instance as a service.

But as I said, running two nodes in the same server, depending on your hardware configuration, could degrade the performance of your cluster. I still don't see the reason to run a hot and cold node on the same server, they share the same resources, even if you set your cold node to use `best_compression`, it would use more CPU of the same server, which would impact your hot node as well, it doesn't justify the work to keep two instances on the same machine. If you need to store 1 year of logs that amount to 10 TB, one server won't help you. If you do not need to search those logs, just store them, you can use snapshots on s3, which could be cheapear than using spinning up another VM.

---

<div class="post-metadata">

### Author: ![Weathmious](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weathmious/32/70916_2.png) [@Weathmious](https://discuss.elastic.co/u/Weathmious)
#### Post date: [March 25, 2021, 4:49pm UTC](https://discuss.elastic.co/t/create-a-new-node/267782/8 "2021-03-25T16:49:20Z")

</div>

Thanks for your advice @leandrojmp, I’ll try to do that

---

<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: [April 22, 2021, 4:49pm UTC](https://discuss.elastic.co/t/create-a-new-node/267782/9 "2021-04-22T16:49:37Z")

</div>

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