I tried creating a new Elasticsearch cluster with 3 master nodes, 3 data nodes and 2 clients. All the 3 master nodes status is in Running but when i verified the logs of the third node, it says time out connecting to 1st node:
{"type": "server", "timestamp": "2023-03-30T11:34:24,460Z", "level": "WARN", "component": "o.e.c.c.ClusterFormationFailureHelper", "cluster.name": "elasticsearch", "node.name": "elasticsearch-master-2", "message": "master not discovered or elected yet, an election requires at least 2 nodes with ids from [gp82BsoETGyQxrVuq4KUDg, va3LZXpBTe6m2pdcE0nqvg, CsWX-u7XR8u2jNQ4AeD1Eg], have discovered possible quorum [{elasticsearch-master-2}{va3LZXpBTe6m2pdcE0nqvg}{LuzbJdgQTOOVnXQO7NRW_w}{10.237.14.89}{10.237.14.89:9300}{ilmr}, {elasticsearch-master-1}{gp82BsoETGyQxrVuq4KUDg}{o0I5HcIfTBmFDXUJiWqcng}{10.236.204.54}{10.236.204.54:9300}{ilmr}]; discovery will continue using [10.236.204.54:9300, 10.233.173.202:9300] from hosts providers and [{elasticsearch-master-2}{va3LZXpBTe6m2pdcE0nqvg}{LuzbJdgQTOOVnXQO7NRW_w}{10.237.14.89}{10.237.14.89:9300}{ilmr}] from last-known cluster state; node term 5, last-accepted version 59 in term 5" }
{"type": "server", "timestamp": "2023-03-30T11:34:26,391Z", "level": "WARN", "component": "o.e.d.PeerFinder", "cluster.name": "elasticsearch", "node.name": "elasticsearch-master-2", "message": "address [10.233.173.202:9300], node [null], requesting [false] connection failed: [][10.233.173.202:9300] connect_timeout[30s]" }
When i executed the curl to cat nodes. i can see 2 nodes are there as part of the cluster:
10.225.3.47 3 75 0 0.00 0.02 0.03 cdfhilrstw - elasticsearch-data-1
10.233.173.204 10 75 0 0.18 0.09 0.02 cdfhilrstw - elasticsearch-data-0
10.233.173.202 38 83 1 0.18 0.09 0.02 ilmr * elasticsearch-master-0
10.236.204.54 64 82 1 0.00 0.02 0.02 ilmr - elasticsearch-master-1
elasticsearch-master-2 and elasticsearch-data-2 are not joining to cluster. Any help would be appreciated.