# Create a cluster between elasticsearch nodes

**URL:** <https://discuss.elastic.co/t/create-a-cluster-between-elasticsearch-nodes/361002>\
**Category:** Elasticsearch\
**Created:** [June 7, 2024, 1:26am UTC](https://discuss.elastic.co/t/create-a-cluster-between-elasticsearch-nodes/361002 "2024-06-07T01:26:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mario\_kazela](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mario_kazela/32/124314_2.png) [@mario\_kazela](https://discuss.elastic.co/u/mario_kazela)\
**Post date:** [June 7, 2024, 1:26am UTC](https://discuss.elastic.co/t/create-a-cluster-between-elasticsearch-nodes/361002/1 "2024-06-07T01:26:35Z")

</div>

Hi,

Need your help!!. I got some issue when creating the elasticsearch 7.x cluster.

Right now I already created and have 3 elasticsearch nodes.  
But the issue when I verify my cluster state, it is show the number of nodes is only 1.

When I curl from 192.168.100.143

```auto
curl -XGET 'localhost:9200/_cluster/health?pretty'
{
  "cluster_name" : "elastic_cluster",
  "status" : "yellow",
  "timed_out" : false,
  "number_of_nodes" : 1,
  "number_of_data_nodes" : 1,
  "active_primary_shards" : 16,
  "active_shards" : 16,
  "relocating_shards" : 0,
  "initializing_shards" : 0,
  "unassigned_shards" : 5,
  "delayed_unassigned_shards" : 0,
  "number_of_pending_tasks" : 0,
  "number_of_in_flight_fetch" : 0,
  "task_max_waiting_in_queue_millis" : 0,
  "active_shards_percent_as_number" : 76.19047619047619
}

```

As you can see a the result, it only show for only one node. It should be 3 nodes at the "number of nodes"

My config in elasticsearch.yml for every 3 nodes:

Node 1 (192.168.100.143)

```auto
node.master: true
node.data: true
cluster.name: elastic_cluster
cluster.initial_master_nodes: ["192.168.100.143", "192.168.100.144", "192.168.100.78"]
node.name: es-1
network.host: [127.0.0.1, 192.168.100.143]
discovery.seed_hosts: ["192.168.100.143", "192.168.100.144", "192.168.100.78"]
discovery.zen.minimum_master_nodes: 2

```

Node 2 (192.168.100.144)

```auto
node.master: true
node.data: true
cluster.name: elastic_cluster
cluster.initial_master_nodes: ["192.168.100.143", "192.168.100.144", "192.168.100.78"]
node.name: es-2
network.host: [127.0.0.1, 192.168.100.144]
discovery.seed_hosts: ["192.168.100.143", "192.168.100.144", "192.168.100.78"]
discovery.zen.minimum_master_nodes: 2

```

Node 3 (192.168.100.78)

```auto
node.master: true
node.data: true
cluster.name: elastic_cluster
cluster.initial_master_nodes: ["192.168.100.143", "192.168.100.144", "192.168.100.78"]
node.name: es-3
network.host: [127.0.0.1, 192.168.100.78]
discovery.seed_hosts: ["192.168.100.143", "192.168.100.144", "192.168.100.78"]
discovery.zen.minimum_master_nodes: 2

```

Thanks

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [June 7, 2024, 5:26am UTC](https://discuss.elastic.co/t/create-a-cluster-between-elasticsearch-nodes/361002/2 "2024-06-07T05:26:47Z")

</div>

Hi @mario_kazela

What version?

You need to provide the logs from one of the other 2 nodes that does not join the cluster. Look for errors

Did the nodes ever join?

If so you need to take out the following as it is only use 1 time to form the cluster.

`cluster.initial_master_nodes:`
