Change cluster name in elastic search

11.7k Views Asked by At

How to rename the current cluster in elasticsearch config?

i want to rename the cluster without it going down if possible.

2

There are 2 best solutions below

3
On BEST ANSWER

If you are having multi nodes cluster means, you can try updating cluster names in config file & directory name (if replicas enabled) one by one nodes; which is similar to rolling upgrade of the Elasticsearch.

if you are using single node cluster means, you can attempt changing the cluster name in config file but restart of cluster will be needed to take effect change.

0
On

Make edits in the elasticsearch.yml file. By default the es cluster name is elasticsearch and the cluster.name field in the yml file is commented out. So first uncomment it, then give a name and restart es.