How to rename the current cluster in elasticsearch config?
i want to rename the cluster without it going down if possible.
How to rename the current cluster in elasticsearch config?
i want to rename the cluster without it going down if possible.
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
.
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.