I'm configuring Elasticserach 7.9.0 cluster with 2 hosts. The elasticsearch.yml in host1 is setup with node.master as true and host2 is setup with node.master as false.
Both hosts have elasticsearch started but with error in host2. Each node is up and running but they are not communicating with each other. Enabled trace for discovery.
Host1 logs indicate: [2021-03-05T18:49:39,125][TRACE][o.e.d.PeerFinder ] [liferaydev1] probing resolved transport addresses [192.168.253.19:9300]
[2021-03-05T18:49:39,125][TRACE][o.e.d.PeerFinder ] [liferaydev1] Peer{transportAddress=192.168.253.19:9300, discoveryNode=null, peersRequestInFlight=false} attempting connection
[2021-03-05T18:49:39,125][TRACE][o.e.d.HandshakingTransportAddressConnector] [liferaydev1] [connectToRemoteMasterNode[192.168.253.19:9300]] opening probe connection
[2021-03-05T18:49:39,127][TRACE][o.e.d.HandshakingTransportAddressConnector] [liferaydev1] [connectToRemoteMasterNode[192.168.253.19:9300]] opened probe connection
[2021-03-05T18:49:39,128][TRACE][o.e.d.HandshakingTransportAddressConnector] [liferaydev1] [connectToRemoteMasterNode[192.168.253.19:9300]] handshake successful: {liferaydev2}{mOHlwT5kTXWcYD5QWCkkQQ}{w1_LFj-cTZWa5IuJTAE2rA}{liferaydev2}{192.168.253.19:9300}{dilrt}{ml.machine_memory=13640597504, ml.max_open_jobs=20, xpack.installed=true, transform.node=true}
[2021-03-05T18:49:39,128][DEBUG][o.e.d.PeerFinder ] [liferaydev1] Peer{transportAddress=192.168.253.19:9300, discoveryNode=null, peersRequestInFlight=false} connection failed
org.elasticsearch.transport.ConnectTransportException: [liferaydev2][192.168.253.19:9300] non-master-eligible node found
Elasticsearch in host1
cluster.name: liferay-elastic-cluster
node.name: liferaydev1
network.publish_host: liferaydev1
network.host: 192.168.253.18
network.bind_host: liferaydev1
http.port: 9200
transport.tcp.port: 9300
discovery.zen.ping.unicast.hosts: ["192.168.253.18:9300", "192.168.253.19:9300"]
cluster.initial_master_nodes: ["liferaydev1", "liferaydev2"]
discovery.zen.minimum_master_nodes: 2
node.master: true
logger.org.elasticsearch.discovery: TRACE
Elasticsearch in host2
node.name: liferaydev2
network.publish_host: liferaydev2
network.host: 192.168.253.19
network.bind_host: liferaydev2
http.port: 9200
discovery.zen.ping.unicast.hosts: ["192.168.253.18:9300", "192.168.253.19:9300"]
cluster.initial_master_nodes: ["liferaydev1", "liferaydev2"]
discovery.zen.minimum_master_nodes: 2
node.master: false
What is missing in the host1 configuration....please help.
Thank you.