Thanks @DavidTurner for the response.
No. Can you explain why you would like to do this?
As, I thought it will prevent from finding the master node in cluster of multiple nodes, if active master node goes down. The cluster would already be knowing if active master node goes down then the specific node (for e.g. node2 would be elected).
Also wanted to know few more things
In a cluster of two nodes:
Node1 Roles: Master & Data (Active master node)
Node2 Roles: Master & Data
When node1 (active master node is made down), node2 is elected as master node. I have few questions related to logs:
Below are the logs of node2:
[DEBUG][o.e.c.s.ClusterService ] [node2] processing [zen-disco-node-failed({node1}{TRq-P0CKS5K0oZWFLIaBIA}{58Q6yXhDTa-Np5uiUa7t8A}{10.0.4.67}{10.0.4.67:9300}), reason(transport disconnected)[{node1}{TRq-P0CKS5K0oZWFLIaBIA}{58Q6yXhDTa-Np5uiUa7t8A}{10.0.4.67}{10.0.4.67:9300} transport disconnected]]: execute
[DEBUG][o.e.c.s.ClusterService ] [node2] cluster state updated, version [45], source [zen-disco-node-failed({node1}{TRq-P0CKS5K0oZWFLIaBIA}{58Q6yXhDTa-Np5uiUa7t8A}{10.0.4.67}{10.0.4.67:9300}), reason(transport disconnected)[{node1}{TRq-P0CKS5K0oZWFLIaBIA}{58Q6yXhDTa-Np5uiUa7t8A}{10.0.4.67}{10.0.4.67:9300} transport disconnected]]
[INFO ][o.e.c.s.ClusterService ] [node2] removed {{node1}{TRq-P0CKS5K0oZWFLIaBIA}{58Q6yXhDTa-Np5uiUa7t8A}{10.0.4.67}{10.0.4.67:9300},}, reason: zen-disco-node-failed({node1}{TRq-P0CKS5K0oZWFLIaBIA}{58Q6yXhDTa-Np5uiUa7t8A}{10.0.4.67}{10.0.4.67:9300}), reason(transport disconnected)[{node1}{TRq-P0CKS5K0oZWFLIaBIA}{58Q6yXhDTa-Np5uiUa7t8A}{10.0.4.67}{10.0.4.67:9300} transport disconnected]
[DEBUG][o.e.c.s.ClusterService ] [node2] publishing cluster state version [45]
[DEBUG][o.e.c.s.ClusterService ] [node2] applying cluster state version 45
[DEBUG][o.e.c.s.ClusterService ] [node2] set local cluster state to version 45
[DEBUG][o.e.a.a.c.n.s.TransportNodesStatsAction] [node2] failed to execute on node [TRq-P0CKS5K0oZWFLIaBIA]
org.elasticsearch.transport.NodeNotConnectedException: [node1][10.0.4.67:9300] Node not connected
at org.elasticsearch.transport.TcpTransport.getConnection(TcpTransport.java:655) ~[elasticsearch-5.4.3.jar:5.4.3]
[INFO ][o.e.c.s.ClusterService ] [node2] removed {{node1}
From where does node2 removes node1? Is it removing node1 from zen discovery module of node2?
[DEBUG][o.e.a.a.c.n.s.TransportNodesStatsAction] [node2] failed to execute on node
Does above log means that node2 fails to update cluster state on node1?