Elasticsearch cluster setup with 7.5.1

Hello,

I am trying to set up a 3-node elasticsearch cluster of version 7.5.1.
I have 1 master node, 1 data node, and 1 client node.
Each instance of elasticsearch.yml configuration is as below.

Master node

path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
cluster.name: prod-elk-west
node.name: mnode01
network.host: MASTER_NODE_IP
http.port: 9200
discovery.zen.ping.unicast.hosts: ["MASTER_NODE_IP"]
discovery.zen.minimum_master_nodes: 1
gateway.recover_after_nodes: 1
node.master: true
node.data: false
xpack.security.audit.enabled: false
xpack.security.enabled: false
indices.query.bool.max_clause_count: 10000
cluster.initial_master_nodes: ["mnode01"]

Client node

path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
cluster.name: prod-elk-west
node.name: cnode01
network.host: CLIENT_NODE_IP
http.port: 9200
discovery.zen.ping.unicast.hosts: ["MASTER_NODE_IP"]
discovery.zen.minimum_master_nodes: 1
gateway.recover_after_nodes: 1
node.master: false
node.data: false
http.cors.enabled: true
http.cors.allow-origin: "*"
http.max_header_size: 16kb
xpack.security.audit.enabled: false
xpack.security.enabled: false
indices.query.bool.max_clause_count: 10000
cluster.initial_master_nodes: ["mnode01"]

Data Node

path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
cluster.name: prod-elk-west
node.name: dnode01
network.host: DATA_NODE_IP
http.port: 9200
discovery.zen.ping.unicast.hosts: ["MASTER_NODE_IP"]
discovery.zen.minimum_master_nodes: 1
gateway.recover_after_nodes: 1
node.master: false
node.data: true
xpack.security.audit.enabled: false
xpack.security.enabled: false
indices.query.bool.max_clause_count: 10000
cluster.initial_master_nodes: ["mnode01"]

All the instances are up and running. But the cluster health is checked the number of nodes is shown as 1. sample is added below.

curl -XGET http://MATER_NODE_IP:9200/_cluster/health?pretty
{
  "cluster_name" : "prod-elk-west",
  "status" : "green",
  "timed_out" : false,
  "number_of_nodes" : 1,
  "number_of_data_nodes" : 0,
  "active_primary_shards" : 0,
  "active_shards" : 0,
  "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
}

could you please help me bring the cluster up and running with all nodes.

Thanks and regards,
Suraj Jannu

You will need to share the logs of the nodes for us to comment further.

Also 7.5 is very much EOL and you should not be using it.

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