2020-10-19 22:02:22 +08:00
|
|
|
[[cluster-name]]
|
|
|
|
[discrete]
|
|
|
|
=== Cluster name setting
|
2017-12-12 23:24:37 +08:00
|
|
|
|
|
|
|
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
|
2020-10-19 22:02:22 +08:00
|
|
|
change it to an appropriate name that describes the purpose of the cluster.
|
2017-12-12 23:24:37 +08:00
|
|
|
|
|
|
|
[source,yaml]
|
|
|
|
--------------------------------------------------
|
|
|
|
cluster.name: logging-prod
|
|
|
|
--------------------------------------------------
|
|
|
|
|
2020-10-19 22:02:22 +08:00
|
|
|
IMPORTANT: Do not reuse the same cluster names in different environments.
|
|
|
|
Otherwise, nodes might join the wrong cluster.
|