Skip to content

Commit f583fe9

Browse files
jrodewigAdam Locke
and
Adam Locke
authored
[DOCS] Document dynamic cluster settings (#61760) (#61818)
Co-authored-by: Adam Locke <[email protected]>
1 parent 083627f commit f583fe9

7 files changed

+79
-52
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

+8
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,6 +130,7 @@ 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

@@ -134,14 +139,17 @@ Enable or disable https://en.wikipedia.org/wiki/Keepalive[TCP keep alive].
134139
Defaults to `true`.
135140

136141
`network.tcp.reuse_address`::
142+
(<<static-cluster-setting,Static>>)
137143
Should an address be reused or not. Defaults to `true` on non-windows
138144
machines.
139145

140146
`network.tcp.send_buffer_size`::
147+
(<<static-cluster-setting,Static>>)
141148
The size of the TCP send buffer (specified with <<size-units,size units>>).
142149
By default not explicitly set.
143150

144151
`network.tcp.receive_buffer_size`::
152+
(<<static-cluster-setting,Static>>)
145153
The size of the TCP receive buffer (specified with <<size-units,size units>>).
146154
By default not explicitly set.
147155

docs/reference/modules/transport.asciidoc

+26-14
Original file line numberDiff line numberDiff line change
@@ -15,39 +15,51 @@ of a <<modules-remote-clusters,remote cluster>>, and also by the
1515
The internal transport communicates over TCP. You can configure it with the
1616
following settings:
1717

18-
[cols="<,<",options="header",]
19-
|=======================================================================
20-
|Setting |Description
21-
|`transport.port` |A bind port range. Defaults to `9300-9400`.
18+
`transport.port`::
19+
(<<static-cluster-setting,Static>>)
20+
A bind port range. Defaults to `9300-9400`.
2221

23-
|`transport.publish_port` |The port that other nodes in the cluster
22+
`transport.publish_port`::
23+
(<<static-cluster-setting,Static>>)
24+
The port that other nodes in the cluster
2425
should use when communicating with this node. Useful when a cluster node
2526
is behind a proxy or firewall and the `transport.port` is not directly
2627
addressable from the outside. Defaults to the actual port assigned via
2728
`transport.port`.
2829

29-
|`transport.bind_host` |The host address to bind the transport service to. Defaults to `transport.host` (if set) or `network.bind_host`.
30+
`transport.bind_host`::
31+
(<<static-cluster-setting,Static>>)
32+
The host address to bind the transport service to. Defaults to
33+
`transport.host` (if set) or `network.bind_host`.
3034

31-
|`transport.publish_host` |The host address to publish for nodes in the cluster to connect to. Defaults to `transport.host` (if set) or `network.publish_host`.
35+
`transport.publish_host`::
36+
(<<static-cluster-setting,Static>>)
37+
The host address to publish for nodes in the cluster to connect to.
38+
Defaults to `transport.host` (if set) or `network.publish_host`.
3239

33-
|`transport.host` |Used to set the `transport.bind_host` and the `transport.publish_host`.
40+
`transport.host`::
41+
(<<static-cluster-setting,Static>>)
42+
Used to set the `transport.bind_host` and the `transport.publish_host`.
3443

35-
36-
|`transport.connect_timeout` |The connect timeout for initiating a new connection (in
44+
`transport.connect_timeout`::
45+
(<<static-cluster-setting,Static>>)
46+
The connect timeout for initiating a new connection (in
3747
time setting format). Defaults to `30s`.
3848

39-
|`transport.compress` |Set to `true` to enable compression (`DEFLATE`) between
49+
`transport.compress`::
50+
(<<static-cluster-setting,Static>>)
51+
Set to `true` to enable compression (`DEFLATE`) between
4052
all nodes. Defaults to `false`.
4153

42-
|`transport.ping_schedule` | Schedule a regular application-level ping message
54+
`transport.ping_schedule`::
55+
(<<static-cluster-setting,Static>>)
56+
Schedule a regular application-level ping message
4357
to ensure that transport connections between nodes are kept alive. Defaults to
4458
`5s` in the transport client and `-1` (disabled) elsewhere. It is preferable
4559
to correctly configure TCP keep-alives instead of using this feature, because
4660
TCP keep-alives apply to all kinds of long-lived connections and not just to
4761
transport connections.
4862

49-
|=======================================================================
50-
5163
It also uses the common
5264
<<modules-network,network settings>>.
5365

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)