# Cannot add a new node in a cluster already composed of 1 node

**URL:** <https://discuss.elastic.co/t/cannot-add-a-new-node-in-a-cluster-already-composed-of-1-node/237841>\
**Category:** Elasticsearch\
**Created:** [June 19, 2020, 4:57pm UTC](https://discuss.elastic.co/t/cannot-add-a-new-node-in-a-cluster-already-composed-of-1-node/237841 "2020-06-19T16:57:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Julius](https://avatars.discourse-cdn.com/v4/letter/j/ecd19e/32.png) [@Julius](https://discuss.elastic.co/u/Julius)\
**Post date:** [June 19, 2020, 4:57pm UTC](https://discuss.elastic.co/t/cannot-add-a-new-node-in-a-cluster-already-composed-of-1-node/237841/1 "2020-06-19T16:57:49Z")

</div>

here is the configuration of node 1 with IP: 192.168.1.1 :

```auto
cluster.name: Syslog
node.name: ColdServer
node.master: false
node.data: true
path.data: /var/log/ELK/data
network.host: 0.0.0.0
http.port: 9200
transport.tcp.port: 9300
discovery.zen.ping.unicast.hosts: ["192.168.1.1", "192.168.1.2"]
discovery.zen.minimum_master_nodes: 2
    

```

here is the configuration of node 2 with IP: 192.168.1.2 :

```auto
cluster.name: Syslog
node.name: HotServer
node.master: true
node.data: true
path.data: /var/lib/data
network.host: 0.0.0.0
http.port: 9200
transport.tcp.port: 9300
discovery.zen.ping.unicast.hosts: ["192.168.1.1", "192.168.1.2"]
discovery.zen.minimum_master_nodes: 2

```

here is the result of the request curl -XGET [http://192.168.1.2:9200/\_cluster/health?pretty](http://192.168.1.2:9200/_cluster/health?pretty) :

```auto
{
  "cluster_name" : "Syslog",
  "status" : "green",
  "timed_out" : false,
  "number_of_nodes" : 1,
  "number_of_data_nodes" : 1,
  "active_primary_shards" : 3,
  "active_shards" : 3,
  "relocating_shards" : 0,
  "initializing_shards" : 0,
  "unassigned_shards" : 0,
  "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" : 100.0
}

```

Do you have an idea of the cause that prevents me from adding the node to the cluster ?

Thanks!

---

<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 19, 2020, 5:13pm UTC](https://discuss.elastic.co/t/cannot-add-a-new-node-in-a-cluster-already-composed-of-1-node/237841/2 "2020-06-19T17:13:19Z")

</div>

Which version of Elasticsearch are you using? Why do you have minimum\_master\_nodes set to 2 when only one node is master eligible?

---

<div class="post-metadata">

**Author:** ![Julius](https://avatars.discourse-cdn.com/v4/letter/j/ecd19e/32.png) [@Julius](https://discuss.elastic.co/u/Julius)\
**Post date:** [June 19, 2020, 5:25pm UTC](https://discuss.elastic.co/t/cannot-add-a-new-node-in-a-cluster-already-composed-of-1-node/237841/3 "2020-06-19T17:25:14Z")

</div>

@Christian_Dahlqvist  
here is the version:

```auto
{
  "name" : "HotServer",
  "cluster_name" : "Syslog",
  "version" : {
    "number" : "7.4.2",
    "build_flavor" : "oss",
    "build_type" : "tar",
    "build_snapshot" : false,
    "lucene_version" : "8.2.0",
    "minimum_wire_compatibility_version" : "6.8.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  },
  "tagline" : "You Know, for Search"
}

```

for the minimum\_master\_nodes I tried with 1 and it didn't work.

---

<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 19, 2020, 5:54pm UTC](https://discuss.elastic.co/t/cannot-add-a-new-node-in-a-cluster-already-composed-of-1-node/237841/4 "2020-06-19T17:54:03Z")

</div>

The way cluster configuration is handled has changed in version 7, so I would recommend you have a look at the documentation for the correct version. It looks like you are using a guide for an older version.

---

<div class="post-metadata">

**Author:** ![Julius](https://avatars.discourse-cdn.com/v4/letter/j/ecd19e/32.png) [@Julius](https://discuss.elastic.co/u/Julius)\
**Post date:** [June 19, 2020, 8:48pm UTC](https://discuss.elastic.co/t/cannot-add-a-new-node-in-a-cluster-already-composed-of-1-node/237841/5 "2020-06-19T20:48:27Z")

</div>

indeed it doesn't work the same way in version 7.x  
I put the links to the doc.  
[https://www.elastic.co/guide/en/elasticsearch/reference/7.x/encrypting-communications-hosts.html](https://www.elastic.co/guide/en/elasticsearch/reference/7.x/encrypting-communications-hosts.html)

thanks a lot

---

<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 17, 2020, 8:48pm UTC](https://discuss.elastic.co/t/cannot-add-a-new-node-in-a-cluster-already-composed-of-1-node/237841/6 "2020-07-17T20:48:27Z")

</div>

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