Hi,
Need your help!!. I got some issue when creating the elasticsearch 7.x cluster.
Right now I already created and have 3 elasticsearch nodes.
But the issue when I verify my cluster state, it is show the number of nodes is only 1.
When I curl from 192.168.100.143
curl -XGET 'localhost:9200/_cluster/health?pretty'
{
"cluster_name" : "elastic_cluster",
"status" : "yellow",
"timed_out" : false,
"number_of_nodes" : 1,
"number_of_data_nodes" : 1,
"active_primary_shards" : 16,
"active_shards" : 16,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 5,
"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" : 76.19047619047619
}
As you can see a the result, it only show for only one node. It should be 3 nodes at the "number of nodes"
My config in elasticsearch.yml for every 3 nodes:
Node 1 (192.168.100.143)
node.master: true
node.data: true
cluster.name: elastic_cluster
cluster.initial_master_nodes: ["192.168.100.143", "192.168.100.144", "192.168.100.78"]
node.name: es-1
network.host: [127.0.0.1, 192.168.100.143]
discovery.seed_hosts: ["192.168.100.143", "192.168.100.144", "192.168.100.78"]
discovery.zen.minimum_master_nodes: 2
Node 2 (192.168.100.144)
node.master: true
node.data: true
cluster.name: elastic_cluster
cluster.initial_master_nodes: ["192.168.100.143", "192.168.100.144", "192.168.100.78"]
node.name: es-2
network.host: [127.0.0.1, 192.168.100.144]
discovery.seed_hosts: ["192.168.100.143", "192.168.100.144", "192.168.100.78"]
discovery.zen.minimum_master_nodes: 2
Node 3 (192.168.100.78)
node.master: true
node.data: true
cluster.name: elastic_cluster
cluster.initial_master_nodes: ["192.168.100.143", "192.168.100.144", "192.168.100.78"]
node.name: es-3
network.host: [127.0.0.1, 192.168.100.78]
discovery.seed_hosts: ["192.168.100.143", "192.168.100.144", "192.168.100.78"]
discovery.zen.minimum_master_nodes: 2
Thanks