2017-12-12 10:24:37 -05:00
|
|
|
[[node.name]]
|
|
|
|
=== `node.name`
|
|
|
|
|
2017-12-19 10:50:23 -05:00
|
|
|
By default, Elasticsearch will use the first seven characters of the randomly
|
|
|
|
generated UUID as the node id.Note that the node id is persisted and does
|
2017-12-12 10:24:37 -05:00
|
|
|
not change when a node restarts and therefore the default node name will also
|
|
|
|
not change.
|
|
|
|
|
|
|
|
It is worth configuring a more meaningful name which will also have the
|
|
|
|
advantage of persisting after restarting the node:
|
|
|
|
|
|
|
|
[source,yaml]
|
|
|
|
--------------------------------------------------
|
|
|
|
node.name: prod-data-2
|
|
|
|
--------------------------------------------------
|
|
|
|
|
|
|
|
The `node.name` can also be set to the server's HOSTNAME as follows:
|
|
|
|
|
|
|
|
[source,yaml]
|
|
|
|
--------------------------------------------------
|
|
|
|
node.name: ${HOSTNAME}
|
|
|
|
--------------------------------------------------
|