Hello,
I have deployed a 3 node Elasticsearch 7.0 Cluster from the Azure marketplace. However, I'm having trouble configuring them to see each other. Below I have detailed the elasticsearch.yml for 2 of the nodes.
Node 1 is called esp-data-0 (192.248.16.7). Here is the elasticsearch.yml
cluster.name: "elasticsearch" node.name: "esp-data-0" path.logs: /var/log/elasticsearch path.data: /datadisks/disk1/elasticsearch/data cluster.initial_master_nodes: ["esp-data-0","esp-data-1","esp-data-2"] discovery.seed_hosts: ["192.248.16.7","192.248.16.6","192.248.16.8"] network.bind_host: "192.248.16.7" network.publish_host: "192.248.16.7" transport.port: "9300" node.master: true node.data: true discovery.zen.minimum_master_nodes: 2 network.host: ["192.248.16.7",_local_] node.max_local_storage_nodes: 1 node.attr.fault_domain: 1 node.attr.update_domain: 1 cluster.routing.allocation.awareness.attributes: fault_domain,update_domain xpack.license.self_generated.type: trial xpack.security.enabled: false bootstrap.memory_lock: true
Nodes 2 and 3 also have master and data set to true. See node 2 below:
cluster.name: "elasticsearch" node.name: "esp-data-1" path.logs: /var/log/elasticsearch path.data: /datadisks/disk1/elasticsearch/data cluster.initial_master_nodes: ["esp-data-0","esp-data-1","esp-data-2"] discovery.seed_hosts: ["192.248.16.7","192.248.16.6","192.248.16.8"] network.bind_host: "192.248.16.6" network.publish_host: "192.248.16.6" transport.port: "9300" node.master: true node.data: true discovery.zen.minimum_master_nodes: 2 network.host: ["192.248.16.6",_local_] node.max_local_storage_nodes: 1 node.attr.fault_domain: 0 node.attr.update_domain: 0 cluster.routing.allocation.awareness.attributes: fault_domain,update_domain xpack.license.self_generated.type: trial xpack.security.enabled: false bootstrap.memory_lock: true
On all three nodes, when I run the below to view the cluster topology, they only appear to have sight of themselves and not the other 2 nodes in the cluster... I CAN however, telnet successfully from each node to the other on ports 9200/9300 so I believe the issue must reside in my Elasticsearch congig.
telnet 192.248.16.6 9200 Trying 192.248.16.6... Connected to 192.248.16.6.
telnet 192.248.16.6 9300 Trying 192.248.16.6... Connected to 192.248.16.6.
Can you please suggest why this may be?
Result of running nodes command on node 1:
curl 192.248.16.7:9200/_cat/nodes?v
ip heap.percent ram.percent cpu load_1m load_5m load_15m node.role master name
192.248.16.7 3 68 0 0.00 0.02 0.00 mdi * esp-data-0
Result of running nodes command on node 2:
curl 192.248.16.6:9200/_cat/nodes?v
ip heap.percent ram.percent cpu load_1m load_5m load_15m node.role master name
192.248.16.6 3 68 0 0.00 0.02 0.00 mdi * esp-data-1