I'm struggling to understand the discovery settings now that
discovery.zen.minimum_master_nodes
has gone away.
(where current is 8.7) says that discovery.seed_hosts
Provides a list of the addresses of the master-eligible nodes in the
cluster.
But then there's also cluster.initial_master_nodes
Sets the initial set of master-eligible nodes in a brand-new cluster.
So one has to specify the list of master eligible nodes twice. Which
seems odd.
says of cluster.initial_master_nodes
Remove this setting once the cluster has formed.
provides a much stronger warning with the words about removing the
setting presented next to an image of a warning sign and the word
IMPORTANT. Nothing is said about why it's IMPORTANT. I've found a post
on this forum which says there is potential for data loss, in "rare
circumstances".
It used to be that configuration for nodes in a new cluster could be deployed then simply left alone. Now people are expected to deploy one set of configuration and remember that once the cluster is up and running, they should deploy different configuration. This seems clunky, unintuitive, and setting people up to fail. It is inevitable that some will forget to remove the setting.
Please could someone explain:
Why do discovery.seed_hosts
and cluster.initial_master_nodes
both exist?
What problems may result from a failure to remove cluster.initial_master_nodes
?