Hi,
Currently, we setup two node elasticsearch cluster in my lab and configured ha. We set the both the nodes are master and data. but when the elk01 master node is down, the elk02 doesnt take the leader process.
ELK02 node LOG :
[2023-04-26T05:53:24,772][WARN ][o.e.c.c.ClusterFormationFailureHelper] [elk02] master not discovered or elected yet, an election requires a node with id [bwJj1LCyTN2Abv_OdGuI1g], have only discovered non-quorum [{elk02}{Auut4OPBRWCJVZF8HTVDnA}{-g_C18DMTW-krUVX8HCD1Q}{elk02}{192.168.170.36}{192.168.170.36:9300}{dm}{8.7.0}]; discovery will continue using [192.168.170.7:9300] from hosts providers and [{elk02}{Auut4OPBRWCJVZF8HTVDnA}{-g_C18DMTW-krUVX8HCD1Q}{elk02}{192.168.170.36}{192.168.170.36:9300}{dm}{8.7.0}] from last-known cluster state; node term 6, last-accepted version 93 in term 6; for troubleshooting guidance, see Troubleshooting discovery | Elasticsearch Guide [8.7] | Elastic
[2023-04-26T05:53:24,852][WARN ][o.e.d.PeerFinder ] [elk02] address [192.168.170.7:9300], node [null], requesting [false] discovery result: [192.168.170.7:9300] connect_exception: Failed execution: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: elk01/192.168.170.7:9300: Connection refused: elk01/192.168.170.7:9300: Connection refused
[2023-04-26T05:53:25,854][WARN ][o.e.d.PeerFinder ] [elk02] address [192.168.170.7:9300], node [null], requesting [false] discovery result: [192.168.170.7:9300] connect_exception: Failed execution: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: elk01/192.168.170.7:9300: Connection refused: elk01/192.168.170.7:9300: Connection refused
[2023-04-26T05:53:26,853][WARN ][o.e.d.PeerFinder ] [elk02] address [192.168.170.7:9300], node [null], requesting [false] discovery result: [192.168.170.7:9300] connect_exception: Failed execution: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: elk01/192.168.170.7:9300: Connection refused: elk01/192.168.170.7:9300: Connection refused
[2023-04-26T05:53:27,854][WARN ][o.e.d.PeerFinder ] [elk02] address [192.168.170.7:9300], node [null], requesting [false] discovery result: [192.168.170.7:9300] connect_exception: Failed execution: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: elk01/192.168.170.7:9300: Connection refused: elk01/192.168.170.7:9300: Connection refused