"node is locked into cluster" message

Hi!

We have a 6 nodes ES cluster, self-hosted on AWS. There are three dedicated master nodes, and three data nodes.

Please help me to understand this message:

[2023-09-03T08:32:18,239][WARN ][o.e.c.c.ClusterBootstrapService] [node-1] this node is locked into cluster UUID [REDACTED] but [cluster.initial_master_nodes] is set to [node-1, node-2, node-3]; remove this setting to avoid possible data loss caused by subsequent cluster bootstrap attempts; for further informationsee https://www.elastic.co/guide/en/elasticsearch/reference/8.8/important-settings.html#initial_master_nodes

I'm not sure if everything is fine, or some action is needed here.

This is my elasticsearch.yml:

bootstrap.memory_lock: true
cluster.initial_master_nodes:
- node-1
- node-2
- node-3
cluster.name: search-cluster
discovery.seed_hosts:
- REDACTED
- REDACTED
- REDACTED
http.host: 0.0.0.0
http.port: 9200
network.host: 0.0.0.0
node.name: node-1
node.roles:
- master
- remote_cluster_client
transport.port: 9300
xpack.security.http.ssl:
  enabled: false
xpack.security.transport.ssl:
  enabled: true
  keystore.path: certs/elastic-certificates.p12
  truststore.path: certs/elastic-certificates.p12
  verification_mode: certificate

Hi @lifer

As the docs say here (referenced in the message)

IMPORTANT: After the cluster forms successfully for the first time, remove the cluster.initial_master_nodes setting from each node’s configuration. Do not use this setting when restarting a cluster or adding a new node to an existing cluster.

So assuming your cluster has formed (i.e.you have bootstrapped your cluster) you should take that setting out on each node.

2 Likes

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