Currently we are in the process of setting up 3 node elasticsearch cluster on
v7.11.2 (self-managed) using below setup :
- All 3 nodes will be data nodes and master eligible.
- We will set
"index.number_of_replicas": 2and use forced awareness to ensure each node has a copy of every shard.
- Single instance of Kibana will run and point to all 3 nodes.
If one node fails the cluster will still hold together, however if 2 nodes fail then the cluster essentially stops working as it cannot establish quorum.
I have tried using
voting_config_exclusions API. But this needs minimum 2 nodes to execute. On a single node, this does not work. I think
discovery.zen.minimum_master_nodes setting is deprecated and also not advisable.
My question is: Is it possible to run this setup on a single node as a contingency if the other 2 nodes cannot be recovered for any reason. Is the only way to achieve this by adding
discovery.type: "single-node" in the yml of node1 and take a restart ?