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

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

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 :

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 :

{
  "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!

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

@Christian_Dahlqvist
here is the version:

{
  "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.

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.

1 Like

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

thanks a lot

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