mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 17:34:17 -04:00
18 lines
651 B
Text
18 lines
651 B
Text
[[cluster-name]]
|
|
[discrete]
|
|
==== Cluster name setting
|
|
|
|
A node can only join a cluster when it shares its `cluster.name` with all the
|
|
other nodes in the cluster. The default name is `elasticsearch`, but you should
|
|
change it to an appropriate name that describes the purpose of the cluster.
|
|
|
|
[source,yaml]
|
|
--------------------------------------------------
|
|
cluster.name: logging-prod
|
|
--------------------------------------------------
|
|
|
|
IMPORTANT: Do not reuse the same cluster names in different environments.
|
|
Otherwise, nodes might join the wrong cluster.
|
|
|
|
NOTE: Changing the name of a cluster requires a <<restart-cluster-full,full
|
|
cluster restart>>.
|