# Add 2nd node to cluster

**URL:** <https://discuss.elastic.co/t/add-2nd-node-to-cluster/235684>\
**Category:** Elasticsearch\
**Created:** [June 4, 2020, 7:28am UTC](https://discuss.elastic.co/t/add-2nd-node-to-cluster/235684 "2020-06-04T07:28:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pszm](https://avatars.discourse-cdn.com/v4/letter/p/e36b37/32.png) [@pszm](https://discuss.elastic.co/u/pszm)\
**Post date:** [June 4, 2020, 7:28am UTC](https://discuss.elastic.co/t/add-2nd-node-to-cluster/235684/1 "2020-06-04T07:28:17Z")

</div>

We've been running a production system with a single node for over a year and decided to bump up to having 2 nodes for some resiliency.  
I cannot for the life of me figure out how to get this new node to see the 'master' and join it.

I can telnet between machines without issue.  
I can issue curl commands between machines.  
I can 'reindex' from the master to a new machine without issue.

The only possible hiccup could be that the new node machine is running 7.7.0 and the master is on 6.8.9.

on both machines:

```auto
cluster.name: xyz-es-cluster
node.name: ${HOSTNAME}

```

on new node:

```auto
discovery.seed_hosts: ["10.xxx.xx.xxx"] # master ip
cluster.initial_master_nodes: ["hostname of master"]

```

on master node:  
`discovery.zen.ping.unicast.hosts: ["10.xxx.xx.xxx", "10.xxx.xx.xxx"] #master node ip, new cluster node ip. in this format because it is 6.8.9`

Otherwise, the elasticsearch.yml's on both are as installed by the package manager.

is there something else that needs doing?

---

<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 4, 2020, 8:34am UTC](https://discuss.elastic.co/t/add-2nd-node-to-cluster/235684/2 "2020-06-04T08:34:45Z")

</div>

Both nodes need to have use the same version.

---

<div class="post-metadata">

**Author:** ![pszm](https://avatars.discourse-cdn.com/v4/letter/p/e36b37/32.png) [@pszm](https://discuss.elastic.co/u/pszm)\
**Post date:** [June 7, 2020, 12:17am UTC](https://discuss.elastic.co/t/add-2nd-node-to-cluster/235684/4 "2020-06-07T00:17:04Z")

</div>

Have upgraded production to `7.7.1 oss`  
Have created brand new node also running `7.7.1 oss`  
Still no luck. After 3 days I'm getting close to throwing ES out.  
The new node sees the 'master'. It joins the cluster. Now the issue is that no data is replicating.  
Cluster status is red.

```auto
curl -XGET 'http://localhost:9200/_cluster/health?pretty'
{
  "cluster_name" : "zm-amz-data",
  "status" : "red",
  "timed_out" : false,
  "number_of_nodes" : 2,
  "number_of_data_nodes" : 2,
  "active_primary_shards" : 29,
  "active_shards" : 29,
  "relocating_shards" : 0,
  "initializing_shards" : 0,
  "unassigned_shards" : 39,
  "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" : 42.64705882352941
}

```

There are no errors on the new node or the master.

```auto
[2020-06-07T00:07:00,644][INFO][o.e.c.s.MasterService] [elasticsearch-01] node-join[{elasticsearch-02}{e_toEmodToGU98qY6MZaWQ}{kiBIItOtRpql0GcThMtkHg}{<new node ip>}{<new node ip>:9300}{dimr} join existing leader], term: 3, version: 154, delta: added {{elasticsearch-02}{e_toEmodToGU98qY6MZaWQ}{kiBIItOtRpql0GcThMtkHg}{<new node ip>}{<new node ip>:9300}{dimr}}
[2020-06-07T00:07:01,131][INFO][o.e.c.s.ClusterApplierService] [elasticsearch-01] added {{elasticsearch-02}{e_toEmodToGU98qY6MZaWQ}{kiBIItOtRpql0GcThMtkHg}{<new node ip>}{<new node ip>:9300}{dimr}}, term: 3, version: 154, reason: Publication{term=3, version=154}

```

All I want is to get all our data from the master onto the new node! I am amazed how difficult this seems to be.

---

<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, 2020, 12:17am UTC](https://discuss.elastic.co/t/add-2nd-node-to-cluster/235684/5 "2020-07-05T00:17:06Z")

</div>

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