Hello,
I am trying to build a 3-node Elasticsearch cluster. I am using Elasticsearch 7.3. When I check the health of the cluster, it tells me the number of nodes = 1.
Here are the node settings for all three:
Start config
Node 1:
cluster.name: elastic
node.name: node-1
node.data: true
node.ingest: true
node.master: true
network.host: 10.10.1.176
http.port: 9200
discovery.seed_hosts: ["10.10.1.176", "10.10.1.175", "10.10.1.174"]
cluster.initial_master_nodes: [node-1, node-2, node-3]
Node 2:
cluster.name: elastic
node.name: node-2
node.data: true
node.ingest: true
node.master: true
network.host: 10.10.1.175
http.port: 9200
discovery.seed_hosts: ["10.10.1.176", "10.10.1.175", "10.10.1.174"]
cluster.initial_master_nodes: [node-1, node-2, node-3]
Node 3:
cluster.name: elastic
node.name: node-3
node.data: true
node.ingest: true
node.master: true
network.host: 10.10.1.174
http.port: 9200
discovery.seed_hosts: ["10.10.1.176", "10.10.1.175", "10.10.1.174"]
cluster.initial_master_nodes: [node-1, node-2, node-3]
End config
[root@elk-node2 ~]# curl -X GET "10.10.1.176:9200/_cluster/health?pretty"
{
"cluster_name" : "elastic",
"status" : "green",
"timed_out" : false,
"number_of_nodes" : 1,
"number_of_data_nodes" : 1,
"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