This is an excerpt from the official documentation and I would like to know. By cluster, I mean a combination of virtual machines on which one instance of elastic is installed. Node is a new instance of a virtual machine:
- After the cluster has been formed for the first time, should this parameter be removed from the configuration file?
- What is the effect of the presence of this parameter in further starts of the cluster (reboot after an emergency shutdown, primitive shutdown of the cluster before updating, and all other possible typical maintenance situations)?
- When I add new nodes with the role of master to the cluster, do I need to specify this parameter?
Blockquote The initial set of master-eligible nodes is defined in the [
When you start a master-eligible node, you can provide this setting on the command line or in the
elasticsearch.ymlfile. After the cluster has formed, this setting is no longer required. It should not be set for master-ineligible nodes, master-eligible nodes joining an existing cluster, or cluster restarts.
Blockquote It is technically sufficient to set
cluster.initial_master_nodeson a single master-eligible node in the cluster, and only to mention that single node in the setting’s value, but this provides no fault tolerance before the cluster has fully formed. It is therefore better to bootstrap using at least three master-eligible nodes, each with a
cluster.initial_master_nodessetting containing all three nodes.