OpenSearch/docs/reference/setup
Nik Everett 26c4f1fb6c
Core: Default node.name to the hostname (#33677)
Changes the default of the `node.name` setting to the hostname of the
machine on which Elasticsearch is running. Previously it was the first 8
characters of the node id. This had the advantage of producing a unique
name even when the node name isn't configured but the disadvantage of
being unrecognizable and not being available until fairly late in the
startup process. Of particular interest is that it isn't available until
after logging is configured. This forces us to use a volatile read
whenever we add the node name to the log.

Using the hostname is available immediately on startup and is generally
recognizable but has the disadvantage of not being unique when run on
machines that don't set their hostname or when multiple elasticsearch
processes are run on the same host. I believe that, taken together, it
is better to default to the hostname.

1. Running multiple copies of Elasticsearch on the same node is a fairly
advanced feature. We do it all the as part of the elasticsearch build
for testing but we make sure to set the node name then.
2. That the node.name defaults to some flavor of "localhost" on an
unconfigured box feels like it isn't going to come up too much in
production. I expect most production deployments to at least set the
hostname.

As a bonus, production deployments need no longer set the node name in
most cases. At least in my experience most folks set it to the hostname
anyway.
2018-09-19 15:21:29 -04:00
..
important-settings Core: Default node.name to the hostname (#33677) 2018-09-19 15:21:29 -04:00
install Docs: Fixed a grammatical mistake: 'a HTTP ...' -> 'an HTTP ...' (#33744) 2018-09-17 15:35:54 -04:00
sysconfig Remove reference to non-existent store type (#32418) 2018-07-27 11:24:03 -04:00
bootstrap-checks-xes.asciidoc [DOCS] Moves X-Pack setup to docs (#31145) 2018-06-06 14:46:20 -07:00
bootstrap-checks.asciidoc Enable avoiding mmap bootstrap check (#32421) 2018-08-21 11:02:25 -04:00
configuration.asciidoc [DOCS] Correct typo in configuration (#28903) 2018-03-06 15:50:46 +01:00
important-settings.asciidoc [DOCS] Add missing docs include 2018-08-07 17:49:48 +01:00
install.asciidoc Add beta label to MSI on install Elasticsearch page (#28126) 2018-08-22 11:26:53 +10:00
jvm-options.asciidoc Reinsert paragraph about heap size 2017-12-12 11:09:24 -05:00
logging-config.asciidoc Core: Default node.name to the hostname (#33677) 2018-09-19 15:21:29 -04:00
secure-settings.asciidoc [DOCS] Remove reload password from docs cf. #32889 2018-08-23 12:11:39 +03:00
setup-xclient.asciidoc [Test] Remove duplicate method in TestShardRouting (#32815) 2018-09-10 18:29:00 +02:00
setup-xes.asciidoc [DOCS] Moves X-Pack setup to docs (#31145) 2018-06-06 14:46:20 -07:00
starting.asciidoc [DOCS] Starting Elasticsearch (#31701) 2018-07-03 13:40:37 -07:00
stopping.asciidoc [DOC] Remove obsolete node names from documentation 2016-09-19 11:56:28 +02:00
sysconfig.asciidoc Reorganize configuring Elasticsearch docs 2017-12-12 10:24:37 -05:00