Hi,
I have totally 4 nodes running under my Azure scaleset, all 4 machines can be talk to each other.
it means pingable each other and telnet using port 22 and 9200 each other.
installed elasticsearch 6.x on all the 4 machines, and also updated elasticsearch.yml with below information on all 4 nodes.
node1
cluster.name: myescluster
node.name: node1
network.host: 0.0.0.0
discovery.zen.ping.unicast.hosts: ["10.0.0.1", "10.0.0.2", "10.0.0.3", "10.0.0.4"]
node.master: true
transport.tcp.port: 9300-9400
http.port: 9200
node2
cluster.name: myescluster
node.name: node2
network.host: 0.0.0.0
discovery.zen.ping.unicast.hosts: ["10.0.0.1", "10.0.0.2", "10.0.0.3", "10.0.0.4"]
node.master: true
transport.tcp.port: 9300-9400
http.port: 9200
node3
cluster.name: myescluster
node.name: node3
network.host: 0.0.0.0
discovery.zen.ping.unicast.hosts: ["10.0.0.1", "10.0.0.2", "10.0.0.3", "10.0.0.4"]
node.data: true
transport.tcp.port: 9300-9400
http.port: 9200
node4
cluster.name: myescluster
node.name: node4
network.host: 0.0.0.0
discovery.zen.ping.unicast.hosts: ["10.0.0.1", "10.0.0.2", "10.0.0.3", "10.0.0.4"]
node.data: true
transport.tcp.port: 9300-9400
http.port: 9200
When i run curl command to list nodes under cluster "curl -XGET http://localhost:9200/_cat/nodes?v"
it's showing only the self node where am running curl command.
[root@node1 elasticsearch]# curl -XGET http://localhost:9200/_cat/nodes?v
ip heap.percent ram.percent cpu load_1m load_5m load_15m node.role master name
10.0.0.1 29 45 1 0.02 0.08 0.11 mdi * node1
if i run on node2
[root@node2 elasticsearch]# curl -XGET http://localhost:9200/_cat/nodes?v
ip heap.percent ram.percent cpu load_1m load_5m load_15m node.role master name
10.0.0.2 29 45 1 0.02 0.08 0.11 mdi * node2
[root@node3 elasticsearch]# curl -XGET http://localhost:9200/_cat/nodes?v
ip heap.percent ram.percent cpu load_1m load_5m load_15m node.role master name
10.0.0.3 29 45 1 0.02 0.08 0.11 mdi * node3
[root@node4 elasticsearch]# curl -XGET http://localhost:9200/_cat/nodes?v
ip heap.percent ram.percent cpu load_1m load_5m load_15m node.role master name
10.0.0.4 29 45 1 0.02 0.08 0.11 mdi * node4
Cluster health:
[root@node1 elasticsearch]# curl -XGET "http://localhost:9200/_cluster/health"
{"cluster_name":"myescluster","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}
Please suggest if am missing anything, Thanks.