# How add a second node to my cluster?

**URL:** <https://discuss.elastic.co/t/how-add-a-second-node-to-my-cluster/175226>\
**Category:** Elasticsearch\
**Created:** [April 3, 2019, 2:33pm UTC](https://discuss.elastic.co/t/how-add-a-second-node-to-my-cluster/175226 "2019-04-03T14:33:32Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![manue](https://avatars.discourse-cdn.com/v4/letter/m/f19dbf/32.png) [@manue](https://discuss.elastic.co/u/manue)\
**Post date:** [April 3, 2019, 2:33pm UTC](https://discuss.elastic.co/t/how-add-a-second-node-to-my-cluster/175226/1 "2019-04-03T14:33:32Z")

</div>

I am trying to solve a problem that I have with elasticsearch and magento 2.3, and I have been recommended to add a new node but I do not know how to launch the query from the terminal, can someone help me? I have elasticsearch on the same server where I have Magento (ubuntu + nginx)

---

<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:** [April 3, 2019, 8:56pm UTC](https://discuss.elastic.co/t/how-add-a-second-node-to-my-cluster/175226/2 "2019-04-03T20:56:03Z")

</div>

Do you mean launch a new node, not a query?

You would be better off having the node on a separate host/vm/machine, not the same one.

---

<div class="post-metadata">

**Author:** ![manue](https://avatars.discourse-cdn.com/v4/letter/m/f19dbf/32.png) [@manue](https://discuss.elastic.co/u/manue)\
**Post date:** [April 3, 2019, 9:23pm UTC](https://discuss.elastic.co/t/how-add-a-second-node-to-my-cluster/175226/3 "2019-04-03T21:23:59Z")

</div>

Excuse my ignorance, I have mounted a server for magento 2.3.1. I have received a warning from Magento that says I must use Elasticsearch to interact with MySQL, I have installed it on the same Server. Do you think I did wrong? What do you recommend doing then?

---

<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:** [April 3, 2019, 9:25pm UTC](https://discuss.elastic.co/t/how-add-a-second-node-to-my-cluster/175226/4 "2019-04-03T21:25:03Z")

</div>

I don't know magento, so I don't know what they have recommended here.

But in Elasticsearch terms, running multiple nodes on the same host can be problematic. If you lose the host then you lost both Elasticsearch nodes, so running them on separate hosts makes more sense.

---

<div class="post-metadata">

**Author:** ![manue](https://avatars.discourse-cdn.com/v4/letter/m/f19dbf/32.png) [@manue](https://discuss.elastic.co/u/manue)\
**Post date:** [April 4, 2019, 6:46am UTC](https://discuss.elastic.co/t/how-add-a-second-node-to-my-cluster/175226/5 "2019-04-04T06:46:20Z")

</div>

Thank you very much for your reply. If I have only one Elasticsearch node on the same server that I have Magento, then there should be no problem right?

---

<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:** [April 4, 2019, 11:39pm UTC](https://discuss.elastic.co/t/how-add-a-second-node-to-my-cluster/175226/6 "2019-04-04T23:39:34Z")

</div>

Well, you will have no servers to provide your services.

---

<div class="post-metadata">

**Author:** ![manue](https://avatars.discourse-cdn.com/v4/letter/m/f19dbf/32.png) [@manue](https://discuss.elastic.co/u/manue)\
**Post date:** [April 5, 2019, 6:55am UTC](https://discuss.elastic.co/t/how-add-a-second-node-to-my-cluster/175226/7 "2019-04-05T06:55:00Z")

</div>

But, elasticsearch could work with magento right?

---

<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:** [May 3, 2019, 6:55am UTC](https://discuss.elastic.co/t/how-add-a-second-node-to-my-cluster/175226/8 "2019-05-03T06:55:04Z")

</div>

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