Is removing cluster.initial_master_nodes still necessary?


The documentation for elasticsearch 7.14 states, that the configuration setting cluster.initial_master_nodes has to be removed from the configuration file after a cluster has formed sucessfully and should be absent when a new node is added or the cluster is restarted.

While evaluating elasticsearch deployment options, I tried ansible-elasticsearch, which does not remove this option from elasticsearch.yml after the cluster is bootstraped successfully.

I already searched this forum and found this Post, where @DavidTurner stated, that not removing this option could, under certain circumstances, lead to possible data loss and accidentially form a new cluster.

My questions are:

  1. Is this still valid for elasticsearch 7.14.1?
  2. Should the cluster.initial_master_nodes always get removed after cluster bootstraping?
  3. Under what circumstances could data loss occur?

Thank you for your help!

Kind regards,

  1. Yes.

  2. Yes.

  3. Too many to enumerate really but it's only rare circumstances involving other misconfigurations.


Thank you for the fast reply.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.