Skip to content

Commit 129b233

Browse files
jrodewigAdam Locke
and
Adam Locke
authored
[DOCS] Document dynamic cluster settings (#61760) (#61817)
Co-authored-by: Adam Locke <[email protected]>
1 parent 48e53cc commit 129b233

7 files changed

+79
-41
lines changed

docs/reference/modules/gateway.asciidoc

+30-30
Original file line numberDiff line numberDiff line change
@@ -6,52 +6,52 @@ cluster restarts.
66

77
The following _static_ settings, which must be set on every master node,
88
control how long a freshly elected master should wait before it tries to
9-
recover the cluster state and the cluster's data:
9+
recover the cluster state and the cluster's data.
1010

11-
`gateway.expected_nodes`::
11+
NOTE: These settings only take effect on a full cluster restart.
1212

13-
deprecated:[7.7.0, This setting will be removed in 8.0. You should use `gateway.expected_data_nodes` instead.]
14-
The number of (data or master) nodes that are expected to be in the cluster.
15-
Recovery of local shards will start as soon as the expected number of
16-
nodes have joined the cluster. Defaults to `0`
13+
`gateway.expected_nodes`::
14+
(<<static-cluster-setting,Static>>)
15+
deprecated:[7.7.0, This setting will be removed in 8.0. Use `gateway.expected_data_nodes` instead.]
16+
Number of data or master nodes expected in the cluster.
17+
Recovery of local shards begins when the expected number of
18+
nodes join the cluster. Defaults to `0`.
1719

1820
`gateway.expected_master_nodes`::
19-
20-
deprecated:[7.7.0, This setting will be removed in 8.0. You should use `gateway.expected_data_nodes` instead.]
21-
The number of master nodes that are expected to be in the cluster.
22-
Recovery of local shards will start as soon as the expected number of
23-
master nodes have joined the cluster. Defaults to `0`
21+
(<<static-cluster-setting,Static>>)
22+
deprecated:[7.7.0, This setting will be removed in 8.0. Use `gateway.expected_data_nodes` instead.]
23+
Number of master nodes expected in the cluster.
24+
Recovery of local shards begins when the expected number of
25+
master nodes join the cluster. Defaults to `0`.
2426

2527
`gateway.expected_data_nodes`::
26-
27-
The number of data nodes that are expected to be in the cluster.
28-
Recovery of local shards will start as soon as the expected number of
29-
data nodes have joined the cluster. Defaults to `0`
28+
(<<static-cluster-setting,Static>>)
29+
Number of data nodes expected in the cluster.
30+
Recovery of local shards begins when the expected number of
31+
data nodes join the cluster. Defaults to `0`.
3032

3133
`gateway.recover_after_time`::
32-
33-
If the expected number of nodes is not achieved, the recovery process waits
34-
for the configured amount of time before trying to recover regardless.
35-
Defaults to `5m` if one of the `expected_nodes` settings is configured.
36-
34+
(<<static-cluster-setting,Static>>)
35+
If the expected number of nodes is not achieved, the recovery process waits
36+
for the configured amount of time before trying to recover.
37+
Defaults to `5m` if one of the `expected_nodes` settings is configured.
38+
+
3739
Once the `recover_after_time` duration has timed out, recovery will start
3840
as long as the following conditions are met:
3941

4042
`gateway.recover_after_nodes`::
41-
42-
deprecated:[7.7.0, This setting will be removed in 8.0. You should use `gateway.recover_after_data_nodes` instead.]
43-
Recover as long as this many data or master nodes have joined the cluster.
43+
(<<static-cluster-setting,Static>>)
44+
deprecated:[7.7.0, This setting will be removed in 8.0. Use `gateway.recover_after_data_nodes` instead.]
45+
Recover as long as this many data or master nodes have joined the cluster.
4446

4547
`gateway.recover_after_master_nodes`::
46-
47-
deprecated:[7.7.0, This setting will be removed in 8.0. You should use `gateway.recover_after_data_nodes` instead.]
48-
Recover as long as this many master nodes have joined the cluster.
48+
(<<static-cluster-setting,Static>>)
49+
deprecated:[7.7.0, This setting will be removed in 8.0. Use `gateway.recover_after_data_nodes` instead.]
50+
Recover as long as this many master nodes have joined the cluster.
4951

5052
`gateway.recover_after_data_nodes`::
51-
52-
Recover as long as this many data nodes have joined the cluster.
53-
54-
NOTE: These settings only take effect on a full cluster restart.
53+
(<<static-cluster-setting,Static>>)
54+
Recover as long as this many data nodes have joined the cluster.
5555

5656
[[dangling-indices]]
5757
==== Dangling indices

docs/reference/modules/indices/query_cache.asciidoc

+9-4
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,18 @@ The following setting is _static_ and must be configured on every data node in
2222
the cluster:
2323

2424
`indices.queries.cache.size`::
25-
Controls the memory size for the filter cache , defaults to `10%`. Accepts
26-
either a percentage value, like `5%`, or an exact value, like `512mb`.
25+
(<<static-cluster-setting,Static>>)
26+
Controls the memory size for the filter cache. Accepts
27+
either a percentage value, like `5%`, or an exact value, like `512mb`. Defaults to `10%`.
28+
29+
[[query-cache-index-settings]]
30+
==== Query cache index settings
2731

2832
The following setting is an _index_ setting that can be configured on a
2933
per-index basis. Can only be set at index creation time or on a
3034
<<indices-open-close,closed index>>:
3135

3236
`index.queries.cache.enabled`::
33-
Controls whether to enable query caching. Accepts `true` (default) or
34-
`false`.
37+
(<<index-modules-settings,Static>>)
38+
Controls whether to enable query caching. Accepts `true` (default) or
39+
`false`.

docs/reference/modules/indices/search-settings.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ limits.
66

77
[[indices-query-bool-max-clause-count]]
88
`indices.query.bool.max_clause_count`::
9-
(integer)
9+
(<<static-cluster-setting,Static>>, integer)
1010
Maximum number of clauses a Lucene BooleanQuery can contain. Defaults to `1024`.
1111
+
1212
This setting limits the number of clauses a Lucene BooleanQuery can have. The

docs/reference/modules/network.asciidoc

+18-3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Never expose an unprotected node to the public internet.
1717
==== Commonly used network settings
1818

1919
`network.host`::
20+
(<<static-cluster-setting,Static>>)
2021
The node will bind to this hostname or IP address and _publish_ (advertise)
2122
this host to other nodes in the cluster. Accepts an IP address, hostname, a
2223
<<network-interface-values,special value>>, or an array of any combination of
@@ -29,6 +30,7 @@ same effect as the value `0.0.0.0`.
2930
Defaults to `_local_`.
3031

3132
`discovery.seed_hosts`::
33+
(<<static-cluster-setting,Static>>)
3234
In order to join a cluster, a node needs to know the hostname or IP address of
3335
at least some of the other nodes in the cluster. This setting provides the
3436
initial list of addresses this node will try to contact. Accepts IP addresses
@@ -43,13 +45,15 @@ caching>>).
4345
Defaults to `["127.0.0.1", "[::1]"]`.
4446

4547
`http.port`::
48+
(<<static-cluster-setting,Static>>)
4649
Port to bind to for incoming HTTP requests. Accepts a single value or a range.
4750
If a range is specified, the node will bind to the first available port in the
4851
range.
4952
+
5053
Defaults to `9200-9300`.
5154

5255
`transport.port`::
56+
(<<static-cluster-setting,Static>>)
5357
Port to bind for communication between nodes. Accepts a single value or a
5458
range. If a range is specified, the node will bind to the first available port
5559
in the range.
@@ -126,39 +130,50 @@ Any component that uses TCP (like the <<modules-http,HTTP>> and
126130
<<modules-transport,transport>> layers) share the following settings:
127131

128132
`network.tcp.no_delay`::
133+
(<<static-cluster-setting,Static>>)
129134
Enable or disable the {wikipedia}/Nagle%27s_algorithm[TCP no delay]
130135
setting. Defaults to `true`.
131136

132137
`network.tcp.keep_alive`::
138+
(<<static-cluster-setting,Static>>)
133139
Configures the `SO_KEEPALIVE` option for this socket, which
134140
determines whether it sends TCP keepalive probes.
135141

136-
`network.tcp.keep_idle`:: Configures the `TCP_KEEPIDLE` option for this socket, which
142+
`network.tcp.keep_idle`::
143+
(<<static-cluster-setting,Static>>)
144+
Configures the `TCP_KEEPIDLE` option for this socket, which
137145
determines the time in seconds that a connection must be idle before
138146
starting to send TCP keepalive probes. Defaults to `-1`, which uses
139147
the system default. This value cannot exceed `300` seconds. Only applicable on Linux and macOS,
140148
and requires Java 11 or newer.
141149

142-
`network.tcp.keep_interval`:: Configures the `TCP_KEEPINTVL` option for this socket,
150+
`network.tcp.keep_interval`::
151+
(<<static-cluster-setting,Static>>)
152+
Configures the `TCP_KEEPINTVL` option for this socket,
143153
which determines the time in seconds between sending TCP keepalive probes.
144154
Defaults to `-1`, which uses the system default. This value cannot exceed `300` seconds.
145155
Only applicable on Linux and macOS, and requires Java 11 or newer.
146156

147-
`network.tcp.keep_count`:: Configures the `TCP_KEEPCNT` option for this socket, which
157+
`network.tcp.keep_count`::
158+
(<<static-cluster-setting,Static>>)
159+
Configures the `TCP_KEEPCNT` option for this socket, which
148160
determines the number of unacknowledged TCP keepalive probes that may be
149161
sent on a connection before it is dropped. Defaults to `-1`,
150162
which uses the system default. Only applicable on Linux and macOS, and requires
151163
Java 11 or newer.
152164

153165
`network.tcp.reuse_address`::
166+
(<<static-cluster-setting,Static>>)
154167
Should an address be reused or not. Defaults to `true` on non-windows
155168
machines.
156169

157170
`network.tcp.send_buffer_size`::
171+
(<<static-cluster-setting,Static>>)
158172
The size of the TCP send buffer (specified with <<size-units,size units>>).
159173
By default not explicitly set.
160174

161175
`network.tcp.receive_buffer_size`::
176+
(<<static-cluster-setting,Static>>)
162177
The size of the TCP receive buffer (specified with <<size-units,size units>>).
163178
By default not explicitly set.
164179

docs/reference/modules/transport.asciidoc

+16
Original file line numberDiff line numberDiff line change
@@ -17,35 +17,43 @@ communicates over TCP. These settings also use the common
1717
<<modules-network,network settings>>.
1818

1919
`transport.port`::
20+
(<<static-cluster-setting,Static>>)
2021
A bind port range. Defaults to `9300-9400`.
2122

2223
`transport.publish_port`::
24+
(<<static-cluster-setting,Static>>)
2325
The port that other nodes in the cluster
2426
should use when communicating with this node. Useful when a cluster node
2527
is behind a proxy or firewall and the `transport.port` is not directly
2628
addressable from the outside. Defaults to the actual port assigned via
2729
`transport.port`.
2830

2931
`transport.bind_host`::
32+
(<<static-cluster-setting,Static>>)
3033
The host address to bind the transport service to. Defaults to
3134
`transport.host` (if set) or `network.bind_host`.
3235

3336
`transport.publish_host`::
37+
(<<static-cluster-setting,Static>>)
3438
The host address to publish for nodes in the cluster to connect to.
3539
Defaults to `transport.host` (if set) or `network.publish_host`.
3640

3741
`transport.host`::
42+
(<<static-cluster-setting,Static>>)
3843
Used to set the `transport.bind_host` and the `transport.publish_host`.
3944

4045
`transport.connect_timeout`::
46+
(<<static-cluster-setting,Static>>)
4147
The connect timeout for initiating a new connection (in
4248
time setting format). Defaults to `30s`.
4349

4450
`transport.compress`::
51+
(<<static-cluster-setting,Static>>)
4552
Set to `true` to enable compression (`DEFLATE`) between
4653
all nodes. Defaults to `false`.
4754

4855
`transport.ping_schedule`::
56+
(<<static-cluster-setting,Static>>)
4957
Schedule a regular application-level ping message
5058
to ensure that transport connections between nodes are kept alive. Defaults to
5159
`5s` in the transport client and `-1` (disabled) elsewhere. It is preferable
@@ -54,15 +62,18 @@ TCP keep-alives apply to all kinds of long-lived connections and not just to
5462
transport connections.
5563

5664
`transport.tcp.no_delay`::
65+
(<<static-cluster-setting,Static>>)
5766
Enable or disable the {wikipedia}/Nagle%27s_algorithm[TCP no delay]
5867
setting. Defaults to `network.tcp.no_delay`.
5968

6069
`transport.tcp.keep_alive`::
70+
(<<static-cluster-setting,Static>>)
6171
Configures the `SO_KEEPALIVE` option for this socket, which
6272
determines whether it sends TCP keepalive probes.
6373
Defaults to `network.tcp.keep_alive`.
6474

6575
`transport.tcp.keep_idle`::
76+
(<<static-cluster-setting,Static>>)
6677
Configures the `TCP_KEEPIDLE` option for this socket, which
6778
determines the time in seconds that a connection must be idle before
6879
starting to send TCP keepalive probes. Defaults to `network.tcp.keep_idle` if set,
@@ -72,6 +83,7 @@ is higher than `300`, the value is automatically lowered to `300`. Only applicab
7283
Linux and macOS, and requires Java 11 or newer.
7384

7485
`transport.tcp.keep_interval`::
86+
(<<static-cluster-setting,Static>>)
7587
Configures the `TCP_KEEPINTVL` option for this socket,
7688
which determines the time in seconds between sending TCP keepalive probes.
7789
Defaults to `network.tcp.keep_interval` if set, or the system default otherwise.
@@ -80,20 +92,24 @@ the value is automatically lowered to `300`. Only applicable on Linux and macOS,
8092
and requires Java 11 or newer.
8193

8294
`transport.tcp.keep_count`::
95+
(<<static-cluster-setting,Static>>)
8396
Configures the `TCP_KEEPCNT` option for this socket, which
8497
determines the number of unacknowledged TCP keepalive probes that may be
8598
sent on a connection before it is dropped. Defaults to `network.tcp.keep_count`
8699
if set, or the system default otherwise. Only applicable on Linux and macOS, and
87100
requires Java 11 or newer.
88101

89102
`transport.tcp.reuse_address`::
103+
(<<static-cluster-setting,Static>>)
90104
Should an address be reused or not. Defaults to `network.tcp.reuse_address`.
91105

92106
`transport.tcp.send_buffer_size`::
107+
(<<static-cluster-setting,Static>>)
93108
The size of the TCP send buffer (specified with <<size-units,size units>>).
94109
Defaults to `network.tcp.send_buffer_size`.
95110

96111
`transport.tcp.receive_buffer_size`::
112+
(<<static-cluster-setting,Static>>)
97113
The size of the TCP receive buffer (specified with <<size-units,size units>>).
98114
Defaults to `network.tcp.receive_buffer_size`.
99115

docs/reference/settings/license-settings.asciidoc

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ For more information, see
77
{kibana-ref}/managing-licenses.html[License management].
88

99
`xpack.license.self_generated.type`::
10+
(<<static-cluster-setting,Static>>)
1011
Set to `basic` (default) to enable basic {xpack} features. +
1112
+
1213
--

docs/reference/settings/slm-settings.asciidoc

+4-3
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,27 @@ These are the settings available for configuring
1313

1414
[[slm-history-index-enabled]]
1515
`slm.history_index_enabled`::
16-
(boolean)
16+
(<<static-cluster-setting,Static>>, boolean)
1717
Controls whether {slm-init} records the history of actions taken as part of {slm-init} policies
1818
to the `slm-history-*` indices. Defaults to `true`.
1919

2020
[[slm-retention-schedule]]
2121
`slm.retention_schedule`::
22-
(<<cluster-update-settings,Dynamic>>, <<schedule-cron,cron scheduler value>>)
22+
(<<dynamic-cluster-setting,Dynamic>>, <<schedule-cron,cron scheduler value>>)
2323
Controls when the <<slm-retention,retention task>> runs.
2424
Can be a periodic or absolute time schedule.
2525
Supports all values supported by the <<schedule-cron,cron scheduler>>.
2626
Defaults to daily at 1:30am UTC: `0 30 1 * * ?`.
2727

2828
[[slm-retention-duration]]
2929
`slm.retention_duration`::
30-
(<<cluster-update-settings,Dynamic>>, <<time-units,time value>>)
30+
(<<dynamic-cluster-setting,Dynamic>>, <<time-units,time value>>)
3131
Limits how long {slm-init} should spend deleting old snapshots.
3232
Defaults to one hour: `1h`.
3333

3434
[[repositories-url-allowed]]
3535
// tag::repositories-url-allowed[]
3636
`repositories.url.allowed_urls` {ess-icon}::
37+
(<<static-cluster-setting,Static>>)
3738
Specifies the <<snapshots-read-only-repository,read-only URL repositories>> that snapshots can be restored from.
3839
// end::repositories-url-allowed[]

0 commit comments

Comments
 (0)