node-name.asciidoc 749 B

12345678910111213141516171819202122
  1. [[node.name]]
  2. === `node.name`
  3. By default, Elasticsearch will take the 7 first character of the randomly
  4. generated uuid used as the node id. Note that the node id is persisted and does
  5. not change when a node restarts and therefore the default node name will also
  6. not change.
  7. It is worth configuring a more meaningful name which will also have the
  8. advantage of persisting after restarting the node:
  9. [source,yaml]
  10. --------------------------------------------------
  11. node.name: prod-data-2
  12. --------------------------------------------------
  13. The `node.name` can also be set to the server's HOSTNAME as follows:
  14. [source,yaml]
  15. --------------------------------------------------
  16. node.name: ${HOSTNAME}
  17. --------------------------------------------------