2020-10-19 22:02:22 +08:00
|
|
|
[[node-name]]
|
|
|
|
[discrete]
|
2021-04-29 09:30:32 +08:00
|
|
|
==== Node name setting
|
2017-12-12 23:24:37 +08:00
|
|
|
|
2020-10-19 22:02:22 +08:00
|
|
|
{es} uses `node.name` as a human-readable identifier for a
|
|
|
|
particular instance of {es}. This name is included in the response
|
|
|
|
of many APIs. The node name defaults to the hostname of the machine when
|
|
|
|
{es} starts, but can be configured explicitly in
|
|
|
|
`elasticsearch.yml`:
|
2017-12-12 23:24:37 +08:00
|
|
|
|
|
|
|
[source,yaml]
|
|
|
|
--------------------------------------------------
|
|
|
|
node.name: prod-data-2
|
|
|
|
--------------------------------------------------
|