# How to change the cluster name of an elk cluster with 3 master nodes

**URL:** <https://discuss.elastic.co/t/how-to-change-the-cluster-name-of-an-elk-cluster-with-3-master-nodes/332564>\
**Category:** Elasticsearch\
**Created:** [May 4, 2023, 1:59pm UTC](https://discuss.elastic.co/t/how-to-change-the-cluster-name-of-an-elk-cluster-with-3-master-nodes/332564 "2023-05-04T13:59:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![coy\_aprieto](https://avatars.discourse-cdn.com/v4/letter/c/90db22/32.png) [@coy\_aprieto](https://discuss.elastic.co/u/coy_aprieto)\
**Post date:** [May 4, 2023, 1:59pm UTC](https://discuss.elastic.co/t/how-to-change-the-cluster-name-of-an-elk-cluster-with-3-master-nodes/332564/1 "2023-05-04T13:59:11Z")

</div>

Hi,

I'm trying to find a way to change the cluster name of my whole elk cluster (7 data nodes, 3 master).

If i change the cluster name in config and restart a non-current-master node, it will fail to rejoin cluster after restart because the cluster name does not match the old one.

So i'm not sure how to proceed, since rolling restart will not work.

Thx in advance for any advises 🙂

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [May 5, 2023, 8:36am UTC](https://discuss.elastic.co/t/how-to-change-the-cluster-name-of-an-elk-cluster-with-3-master-nodes/332564/2 "2023-05-05T08:36:13Z")

</div>

> [@coy\_aprieto](#):
>
> rolling restart will not work

That's correct, you will have to shut down all the nodes, adjust their config, and then start them all up again.

Edit: I don't see this in the docs today so I opened [#95858](https://github.com/elastic/elasticsearch/pull/95858).

---

<div class="post-metadata">

**Author:** ![coy\_aprieto](https://avatars.discourse-cdn.com/v4/letter/c/90db22/32.png) [@coy\_aprieto](https://discuss.elastic.co/u/coy_aprieto)\
**Post date:** [May 5, 2023, 9:41am UTC](https://discuss.elastic.co/t/how-to-change-the-cluster-name-of-an-elk-cluster-with-3-master-nodes/332564/3 "2023-05-05T09:41:04Z")

</div>

Ty for answering !

When i start the cluster again after shutdown, do i need to start the same master node that was elected before shutting down or that doesn't matter ?

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [May 5, 2023, 9:51am UTC](https://discuss.elastic.co/t/how-to-change-the-cluster-name-of-an-elk-cluster-with-3-master-nodes/332564/4 "2023-05-05T09:51:33Z")

</div>

Just start all the nodes at once, they will sort themselves out.

---

<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:** [June 5, 2023, 6:05am UTC](https://discuss.elastic.co/t/how-to-change-the-cluster-name-of-an-elk-cluster-with-3-master-nodes/332564/6 "2023-06-05T06:05:48Z")

</div>

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