# Create ElasticSearch cluster with 2 or 3 nodes

**URL:** <https://discuss.elastic.co/t/create-elasticsearch-cluster-with-2-or-3-nodes/335901>\
**Category:** Elasticsearch\
**Created:** [June 13, 2023, 6:24pm UTC](https://discuss.elastic.co/t/create-elasticsearch-cluster-with-2-or-3-nodes/335901 "2023-06-13T18:24:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![TomTom](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tomtom/32/3676_2.png) [@TomTom](https://discuss.elastic.co/u/TomTom)\
**Post date:** [June 13, 2023, 6:24pm UTC](https://discuss.elastic.co/t/create-elasticsearch-cluster-with-2-or-3-nodes/335901/1 "2023-06-13T18:24:06Z")

</div>

I need to create an Elasticsearch cluster on Ubuntu machines, but to ensure high availability I would like to have more than one node in case I need to update or upgrade the server.

Is there any material that teaches how to create this type of structure from scratch? Because I search and I don't know how to configure Elasticsearch in this type of environment.

It will never be accessible via the internet, only my VMs running on my hosting provider.

I will be working with data that may have been created months ago and retrieved for searches and reports, but more current data from the last 14 days will always be used for charts.  
What is recommended in this case, using 2 or 3 nodes?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [June 13, 2023, 6:38pm UTC](https://discuss.elastic.co/t/create-elasticsearch-cluster-with-2-or-3-nodes/335901/2 "2023-06-13T18:38:04Z")

</div>

> [@TomTom](#):
>
> What is recommended in this case, using 2 or 3 nodes?

You must have at least 3 master eligible nodes in a cluster in order to get high availability in case one node fails. Please see [the docs](https://www.elastic.co/guide/en/elasticsearch/reference/8.8/high-availability-cluster-small-clusters.html) for further details and discussion.

---

<div class="post-metadata">

**Author:** ![TomTom](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tomtom/32/3676_2.png) [@TomTom](https://discuss.elastic.co/u/TomTom)\
**Post date:** [June 13, 2023, 7:03pm UTC](https://discuss.elastic.co/t/create-elasticsearch-cluster-with-2-or-3-nodes/335901/3 "2023-06-13T19:03:22Z")

</div>

I found this article here showing how to create a multi node cluster.  
Does it have the right information for my type of situation?

> **[Setup a Multi-Node Elasticsearch Cluster](https://medium.com/avmconsulting-blog/how-to-deploy-and-configure-a-multi-node-elastic-search-cluster-c13990881ba0)**
>
> How to configure Elasticsearch to form a cluster of multiple nodes. In this case, we will be creating a cluster of only 6 Nodes

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [June 13, 2023, 7:26pm UTC](https://discuss.elastic.co/t/create-elasticsearch-cluster-with-2-or-3-nodes/335901/4 "2023-06-13T19:26:11Z")

</div>

Have you looked at [the docs](https://www.elastic.co/guide/en/elasticsearch/reference/8.8/modules-discovery-bootstrap-cluster.html)?

---

<div class="post-metadata">

**Author:** ![TomTom](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tomtom/32/3676_2.png) [@TomTom](https://discuss.elastic.co/u/TomTom)\
**Post date:** [June 14, 2023, 1:45pm UTC](https://discuss.elastic.co/t/create-elasticsearch-cluster-with-2-or-3-nodes/335901/5 "2023-06-14T13:45:46Z")

</div>

Yes, but they don't show which files to edit and which settings in each file to modify.

---

<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 12, 2023, 1:46pm UTC](https://discuss.elastic.co/t/create-elasticsearch-cluster-with-2-or-3-nodes/335901/6 "2023-07-12T13:46:43Z")

</div>

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