Skip to content

Commit 1fa232e

Browse files
author
Adam Locke
authored
[DOCS] [7.x] Combining important config settings into a single page (#63849) (#63884)
* [DOCS] Combining important config settings into a single page (#63849) * Combining important config settings into a single page. * Updating ids for two pages causing link errors and implementing redirects. * Updating links to use IDs instead of xrefs.
1 parent 4da1063 commit 1fa232e

20 files changed

+197
-167
lines changed

docs/reference/cluster/nodes-stats.asciidoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ is not `0`, a reason for the rejection or failure is included in the response.
163163

164164
`cluster_name`::
165165
(string)
166-
Name of the cluster. Based on the <<cluster.name>> setting.
166+
Name of the cluster. Based on the <<cluster-name>> setting.
167167

168168
`nodes`::
169169
(object)
@@ -186,7 +186,7 @@ since the {wikipedia}/Unix_time[Unix Epoch].
186186

187187
`name`::
188188
(string)
189-
Human-readable identifier for the node. Based on the <<node.name>> setting.
189+
Human-readable identifier for the node. Based on the <<node-name>> setting.
190190

191191
`transport_address`::
192192
(string)

docs/reference/cluster/stats.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ is not `0`, a reason for the rejection or failure is included in the response.
6666

6767
`cluster_name`::
6868
(string)
69-
Name of the cluster, based on the <<cluster.name>> setting.
69+
Name of the cluster, based on the <<cluster-name>> setting.
7070

7171
`cluster_uuid`::
7272
(string)

docs/reference/modules/discovery/bootstrapping.asciidoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The initial set of master-eligible nodes is defined in the
1515
set to a list containing one of the following items for each master-eligible
1616
node:
1717

18-
- The <<node.name,node name>> of the node.
18+
- The <<node-name,node name>> of the node.
1919
- The node's hostname if `node.name` is not set, because `node.name` defaults
2020
to the node's hostname. You must use either the fully-qualified hostname or
2121
the bare hostname <<modules-discovery-bootstrap-cluster-fqdns,depending on
@@ -44,7 +44,7 @@ WARNING: You must set `cluster.initial_master_nodes` to the same list of nodes
4444
on each node on which it is set in order to be sure that only a single cluster
4545
forms during bootstrapping and therefore to avoid the risk of data loss.
4646

47-
For a cluster with 3 master-eligible nodes (with <<node.name,node names>>
47+
For a cluster with 3 master-eligible nodes (with <<node-name,node names>>
4848
`master-a`, `master-b` and `master-c`) the configuration will look as follows:
4949

5050
[source,yaml]
@@ -97,7 +97,7 @@ match exactly.
9797
[discrete]
9898
==== Choosing a cluster name
9999

100-
The <<cluster.name,`cluster.name`>> setting enables you to create multiple
100+
The <<cluster-name,`cluster.name`>> setting enables you to create multiple
101101
clusters which are separated from each other. Nodes verify that they agree on
102102
their cluster name when they first connect to each other, and Elasticsearch
103103
will only form a cluster from nodes that all have the same cluster name. The

docs/reference/modules/node.asciidoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ A node that has the `master` role (default), which makes it eligible to be
4848
<<data-node,Data node>>::
4949

5050
A node that has the `data` role (default). Data nodes hold data and perform data
51-
related operations such as CRUD, search, and aggregations. A node with the `data` role can fill any of the specialised data node roles.
51+
related operations such as CRUD, search, and aggregations. A node with the `data` role can fill any of the specialised data node roles.
5252

5353
<<node-ingest-node,Ingest node>>::
5454

@@ -456,6 +456,6 @@ directory. This can lead to unexpected data loss.
456456
More node settings can be found in <<settings>> and <<important-settings>>,
457457
including:
458458

459-
* <<cluster.name,`cluster.name`>>
460-
* <<node.name,`node.name`>>
459+
* <<cluster-name,`cluster.name`>>
460+
* <<node-name,`node.name`>>
461461
* <<modules-network,network settings>>

docs/reference/redirects.asciidoc

+10
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@
33

44
The following pages have moved or been deleted.
55

6+
[role="exclude",id="node.name"]
7+
=== Node name setting
8+
9+
See <<node-name,Node name setting>>.
10+
11+
[role="exclude",id="cluster.name"]
12+
=== Cluster name setting
13+
14+
See <<cluster-name,Cluster name setting>>.
15+
616
[role="exclude",id="ccr-remedy-follower-index"]
717
=== Leader index retaining operations for replication
818

docs/reference/repositories-metering-api/apis/repositories-meterings-body.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ is not `0`, a reason for the rejection or failure is included in the response.
2222

2323
`cluster_name`::
2424
(string)
25-
Name of the cluster. Based on the <<cluster.name>> setting.
25+
Name of the cluster. Based on the <<cluster-name>> setting.
2626

2727
`nodes`::
2828
(object)

docs/reference/settings/audit-settings.asciidoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ audited in plain text when including the request body in audit events.
7474
// tag::xpack-sa-lf-emit-node-name-tag[]
7575
`xpack.security.audit.logfile.emit_node_name`::
7676
(<<dynamic-cluster-setting,Dynamic>>)
77-
Specifies whether to include the <<node.name,node name>> as a field in
77+
Specifies whether to include the <<node-name,node name>> as a field in
7878
each audit event. The default value is `false`.
7979
// end::xpack-sa-lf-emit-node-name-tag[]
8080

@@ -101,7 +101,7 @@ The default value is `false`.
101101
Specifies whether to include the node id as a field in each audit event.
102102
This is available for the new format only. That is to say, this information
103103
does not exist in the `<clustername>_access.log` file.
104-
Unlike <<node.name,node name>>, whose value might change if the administrator
104+
Unlike <<node-name,node name>>, whose value might change if the administrator
105105
changes the setting in the config file, the node id will persist across cluster
106106
restarts and the administrator cannot change it.
107107
The default value is `true`.

docs/reference/setup/important-settings.asciidoc

+8-7
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@ settings which need to be considered before going into production.
77
The following settings *must* be considered before going to production:
88

99
* <<path-settings,Path settings>>
10-
* <<cluster.name,Cluster name>>
11-
* <<node.name,Node name>>
12-
* <<network.host,Network host>>
10+
* <<cluster-name,Cluster name setting>>
11+
* <<node-name,Node name setting>>
12+
* <<network.host,Network host settings>>
1313
* <<discovery-settings,Discovery settings>>
14-
* <<heap-size,Heap size>>
15-
* <<heap-dump-path,Heap dump path>>
16-
* <<gc-logging,GC logging>>
17-
* <<es-tmpdir,Temp directory>>
14+
* <<heap-size,Heap size settings>>
15+
* <<heap-dump-path,JVM heap dump path setting>>
16+
* <<gc-logging,GC logging settings>>
17+
* <<es-tmpdir,Temporary directory settings>>
18+
* <<error-file-path,JVM fatal error log setting>>
1819

1920
include::important-settings/path-settings.asciidoc[]
2021

Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1-
[[cluster.name]]
2-
=== `cluster.name`
1+
[[cluster-name]]
2+
[discrete]
3+
=== Cluster name setting
34

45
A node can only join a cluster when it shares its `cluster.name` with all the
56
other nodes in the cluster. The default name is `elasticsearch`, but you should
6-
change it to an appropriate name which describes the purpose of the cluster.
7+
change it to an appropriate name that describes the purpose of the cluster.
78

89
[source,yaml]
910
--------------------------------------------------
1011
cluster.name: logging-prod
1112
--------------------------------------------------
1213

13-
Make sure that you don't reuse the same cluster names in different environments,
14-
otherwise you might end up with nodes joining the wrong cluster.
14+
IMPORTANT: Do not reuse the same cluster names in different environments.
15+
Otherwise, nodes might join the wrong cluster.
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,28 @@
11
[[discovery-settings]]
2-
=== Important discovery and cluster formation settings
3-
++++
4-
<titleabbrev>Discovery and cluster formation settings</titleabbrev>
5-
++++
2+
[discrete]
3+
=== Discovery and cluster formation settings
64

7-
There are two important discovery and cluster formation settings that should be
8-
configured before going to production so that nodes in the cluster can discover
9-
each other and elect a master node.
5+
Configure two important discovery and cluster formation settings before going
6+
to production so that nodes in the cluster can discover each other and elect a
7+
master node.
108

119
[discrete]
1210
[[unicast.hosts]]
1311
==== `discovery.seed_hosts`
1412

15-
Out of the box, without any network configuration, Elasticsearch will bind to
16-
the available loopback addresses and will scan local ports 9300 to 9305 to try
17-
to connect to other nodes running on the same server. This provides an
13+
Out of the box, without any network configuration, {es} will bind to
14+
the available loopback addresses and scan local ports `9300` to `9305` to
15+
connect with other nodes running on the same server. This behavior provides an
1816
auto-clustering experience without having to do any configuration.
1917

20-
When you want to form a cluster with nodes on other hosts, you should use the
21-
<<static-cluster-setting, static>> `discovery.seed_hosts` setting to provide a list of other nodes in the cluster
22-
that are master-eligible and likely to be live and contactable in order to seed
23-
the <<modules-discovery-hosts-providers,discovery process>>. This setting value
24-
should be a YAML sequence or array of the addresses of all the master-eligible
18+
When you want to form a cluster with nodes on other hosts, use the
19+
<<static-cluster-setting, static>> `discovery.seed_hosts` setting. This setting
20+
provides a list of other nodes in the cluster
21+
that are master-eligible and likely to be live and contactable to seed
22+
the <<modules-discovery-hosts-providers,discovery process>>. This setting
23+
accepts a YAML sequence or array of the addresses of all the master-eligible
2524
nodes in the cluster. Each address can be either an IP address or a hostname
26-
which resolves to one or more IP addresses via DNS.
25+
that resolves to one or more IP addresses via DNS.
2726

2827
[source,yaml]
2928
----
@@ -33,9 +32,9 @@ discovery.seed_hosts:
3332
- seeds.mydomain.com <2>
3433
- [0:0:0:0:0:ffff:c0a8:10c]:9301 <3>
3534
----
36-
<1> The port is optional and usually defaults to `9300`, but this default can
37-
be <<built-in-hosts-providers,overridden>> by certain settings.
38-
<2> If a hostname resolves to multiple IP addresses then the node will attempt to
35+
<1> The port is optional and defaults to `9300`, but can
36+
be <<built-in-hosts-providers,overridden>>.
37+
<2> If a hostname resolves to multiple IP addresses, the node will attempt to
3938
discover other nodes at all resolved addresses.
4039
<3> IPv6 addresses must be enclosed in square brackets.
4140

@@ -47,20 +46,22 @@ dynamically.
4746
[[initial_master_nodes]]
4847
==== `cluster.initial_master_nodes`
4948

50-
When you start a brand new Elasticsearch cluster for the very first time, there
51-
is a <<modules-discovery-bootstrap-cluster,cluster bootstrapping>> step, which
52-
determines the set of master-eligible nodes whose votes are counted in the very
49+
When you start an {es} cluster for the first time, a
50+
<<modules-discovery-bootstrap-cluster,cluster bootstrapping>> step
51+
determines the set of master-eligible nodes whose votes are counted in the
5352
first election. In <<dev-vs-prod-mode,development mode>>, with no discovery
54-
settings configured, this step is automatically performed by the nodes
55-
themselves. As this auto-bootstrapping is <<modules-discovery-quorums,inherently
56-
unsafe>>, when you start a brand new cluster in <<dev-vs-prod-mode,production
57-
mode>>, you must explicitly list the master-eligible nodes whose votes should be
58-
counted in the very first election. This list is set using the
59-
`cluster.initial_master_nodes` setting.
53+
settings configured, this step is performed automatically by the nodes
54+
themselves.
55+
56+
Because auto-bootstrapping is <<modules-discovery-quorums,inherently
57+
unsafe>>, when starting a new cluster in production
58+
mode, you must explicitly list the master-eligible nodes whose votes should be
59+
counted in the very first election. You set this list using the
60+
`cluster.initial_master_nodes` setting.
6061

61-
NOTE: You should remove `cluster.initial_master_nodes` setting from the nodes' configuration
62-
*once the cluster has successfully formed for the first time*. Do not use this setting when
63-
restarting a cluster or adding a new node to an existing cluster.
62+
IMPORTANT: After the cluster forms successfully for the first time, remove the `cluster.initial_master_nodes` setting from each nodes'
63+
configuration. Do not use this setting when
64+
restarting a cluster or adding a new node to an existing cluster.
6465

6566
[source,yaml]
6667
--------------------------------------------------
@@ -74,14 +75,13 @@ cluster.initial_master_nodes: <1>
7475
- master-node-b
7576
- master-node-c
7677
--------------------------------------------------
77-
<1> The initial master nodes should be identified by their
78-
<<node.name,`node.name`>>, which defaults to their hostname. Make sure that
79-
the value in `cluster.initial_master_nodes` matches the `node.name`
80-
exactly. If you use a fully-qualified domain name such as
81-
`master-node-a.example.com` for your node names then you must use the
82-
fully-qualified name in this list; conversely if `node.name` is a bare
83-
hostname without any trailing qualifiers then you must also omit the
84-
trailing qualifiers in `cluster.initial_master_nodes`.
78+
<1> Identify the initial master nodes by their <<node-name,`node.name`>>, which
79+
defaults to their hostname. Ensure that the value in
80+
`cluster.initial_master_nodes` matches the `node.name` exactly. If you use a
81+
fully-qualified domain name (FQDN) such as `master-node-a.example.com` for your
82+
node names, then you must use the FQDN in this list. Conversely, if `node.name`
83+
is a bare hostname without any trailing qualifiers, you must also omit the
84+
trailing qualifiers in `cluster.initial_master_nodes`.
8585

86-
For more information, see <<modules-discovery-bootstrap-cluster>> and
87-
<<modules-discovery-settings>>.
86+
See <<modules-discovery-bootstrap-cluster,bootstrapping a cluster>> and
87+
<<modules-discovery-settings,discovery and cluster formation settings>>.
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[[error-file-path]]
2-
=== JVM fatal error logs
2+
[discrete]
3+
=== JVM fatal error log setting
34

4-
By default, Elasticsearch configures the JVM to write fatal error logs
5-
to the default logging directory (this is `/var/log/elasticsearch` for
6-
the <<rpm,RPM>> and <<deb,Debian>> package distributions, and the `logs`
7-
directory under the root of the Elasticsearch installation for the
8-
<<targz,tar>> and <<zip-windows,zip>> archive distributions). These are logs
9-
produced by the JVM when it encounters a fatal error (e.g., a
10-
segmentation fault). If this path is not suitable for receiving logs,
11-
you should modify the entry `-XX:ErrorFile=...` in
12-
<<jvm-options,`jvm.options`>> to an alternate path.
5+
By default, {es} configures the JVM to write fatal error logs
6+
to the default logging directory. On <<rpm,RPM>> and <<deb,Debian>> packages,
7+
this directory is `/var/log/elasticsearch`. On <<targz,Linux and MacOS>> and <<zip-windows,Windows>> distributions, the `logs`
8+
directory is located under the root of the {es} installation.
9+
10+
These are logs produced by the JVM when it encounters a fatal error, such as a
11+
segmentation fault. If this path is not suitable for receiving logs,
12+
modify the `-XX:ErrorFile=...` entry in <<jvm-options,`jvm.options`>>.
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,25 @@
11
[[es-tmpdir]]
2-
=== Temp directory
2+
[discrete]
3+
=== Temporary directory settings
34

4-
By default, Elasticsearch uses a private temporary directory that the startup
5+
By default, {es} uses a private temporary directory that the startup
56
script creates immediately below the system temporary directory.
67

7-
On some Linux distributions a system utility will clean files and directories
8-
from `/tmp` if they have not been recently accessed. This can lead to the
9-
private temporary directory being removed while Elasticsearch is running if
8+
On some Linux distributions, a system utility will clean files and directories
9+
from `/tmp` if they have not been recently accessed. This behavior can lead to
10+
the private temporary directory being removed while {es} is running if
1011
features that require the temporary directory are not used for a long time.
11-
This causes problems if a feature that requires the temporary directory is
12-
subsequently used.
12+
Removing the private temporary directory causes problems if a feature that
13+
requires this directory is subsequently used.
1314

14-
If you install Elasticsearch using the `.deb` or `.rpm` packages and run it
15-
under `systemd` then the private temporary directory that Elasticsearch uses
15+
If you install {es} using the `.deb` or `.rpm` packages and run it
16+
under `systemd`, the private temporary directory that {es} uses
1617
is excluded from periodic cleanup.
1718

18-
However, if you intend to run the `.tar.gz` distribution on Linux for an
19-
extended period then you should consider creating a dedicated temporary
20-
directory for Elasticsearch that is not under a path that will have old files
19+
If you intend to run the `.tar.gz` distribution on Linux or MacOS for
20+
an extended period, consider creating a dedicated temporary
21+
directory for {es} that is not under a path that will have old files
2122
and directories cleaned from it. This directory should have permissions set
22-
so that only the user that Elasticsearch runs as can access it. Then set the
23-
`$ES_TMPDIR` environment variable to point to it before starting Elasticsearch.
23+
so that only the user that {es} runs as can access it. Then, set the
24+
`$ES_TMPDIR` environment variable to point to this directory before starting
25+
{es}.

docs/reference/setup/important-settings/gc-logging.asciidoc

+13-10
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
[[gc-logging]]
2-
=== GC logging
2+
[discrete]
3+
=== GC logging settings
34

4-
By default, {es} enables GC logs. These are configured in
5+
By default, {es} enables garbage collection (GC) logs. These are configured in
56
<<jvm-options,`jvm.options`>> and output to the same default location as
67
the {es} logs. The default configuration rotates the logs every 64 MB and
78
can consume up to 2 GB of disk space.
@@ -19,14 +20,16 @@ To see further options not contained in the original JEP, see
1920
https://docs.oracle.com/en/java/javase/13/docs/specs/man/java.html#enable-logging-with-the-jvm-unified-logging-framework[Enable
2021
Logging with the JVM Unified Logging Framework].
2122

23+
[[gc-logging-examples]]
24+
[discrete]
2225
==== Examples
2326

24-
* Change the default GC log output location to `/opt/my-app/gc.log` by
27+
Change the default GC log output location to `/opt/my-app/gc.log` by
2528
creating `$ES_HOME/config/jvm.options.d/gc.options` with some sample
2629
options:
27-
+
30+
2831
[source,shell]
29-
--------------------------------------------
32+
----
3033
# Turn off all previous logging configuratons
3134
-Xlog:disable
3235
@@ -35,15 +38,15 @@ Logging with the JVM Unified Logging Framework].
3538
3639
# Enable GC logging to a custom location with a variety of options
3740
-Xlog:gc*,gc+age=trace,safepoint:file=/opt/my-app/gc.log:utctime,pid,tags:filecount=32,filesize=64m
38-
--------------------------------------------
41+
----
3942

40-
* Configure an {es} <<docker,Docker container>> to send GC debug logs to
43+
Configure an {es} <<docker,Docker container>> to send GC debug logs to
4144
standard error (`stderr`). This lets the container orchestrator
4245
handle the output. If using the `ES_JAVA_OPTS` environment variable,
4346
specify:
44-
+
47+
4548
[source,sh]
46-
--------------------------------------------
49+
----
4750
MY_OPTS="-Xlog:disable -Xlog:all=warning:stderr:utctime,level,tags -Xlog:gc=debug:stderr:utctime"
4851
docker run -e ES_JAVA_OPTS="$MY_OPTS" # etc
49-
--------------------------------------------
52+
----

0 commit comments

Comments
 (0)