# "node is locked into cluster" message

**URL:** <https://discuss.elastic.co/t/node-is-locked-into-cluster-message/342200>\
**Category:** Elasticsearch\
**Created:** [September 3, 2023, 6:14pm UTC](https://discuss.elastic.co/t/node-is-locked-into-cluster-message/342200 "2023-09-03T18:14:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lifer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lifer/32/94603_2.png) [@lifer](https://discuss.elastic.co/u/lifer)\
**Post date:** [September 3, 2023, 6:14pm UTC](https://discuss.elastic.co/t/node-is-locked-into-cluster-message/342200/1 "2023-09-03T18:14:59Z")

</div>

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:

```auto
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

```

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [September 3, 2023, 6:41pm UTC](https://discuss.elastic.co/t/node-is-locked-into-cluster-message/342200/2 "2023-09-03T18:41:38Z")

</div>

Hi @lifer

As the docs say [here](https://www.elastic.co/guide/en/elasticsearch/reference/8.8/important-settings.html#initial_master_nodes) (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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 1, 2023, 6:42pm UTC](https://discuss.elastic.co/t/node-is-locked-into-cluster-message/342200/3 "2023-10-01T18:42:37Z")

</div>

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