Skip to content

Commit 3dea04f

Browse files
committed
More docs re. removing cluster.initial_master_nodes (elastic#85948)
Ensures that on every page of the docs that mentions `cluster.initial_master_nodes` also mentions that this setting must be removed after bootstrapping completes.
1 parent c47a344 commit 3dea04f

File tree

5 files changed

+21
-11
lines changed

5 files changed

+21
-11
lines changed

docs/reference/modules/discovery.asciidoc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ formation:
3232
themselves. As this auto-bootstrapping is
3333
<<modules-discovery-quorums,inherently unsafe>>, running a node in
3434
<<dev-vs-prod-mode,production mode>> requires bootstrapping to be
35-
explicitly configured via the
36-
<<modules-discovery-bootstrap-cluster,`cluster.initial_master_nodes`
37-
setting>>.
35+
<<modules-discovery-bootstrap-cluster,explicitly configured>>.
3836

3937
<<modules-discovery-adding-removing-nodes,Adding and removing master-eligible nodes>>::
4038

docs/reference/modules/discovery/bootstrapping.asciidoc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ node:
3131

3232
When you start a master-eligible node, you can provide this setting on the
3333
command line or in the `elasticsearch.yml` file. After the cluster has formed,
34-
this setting is no longer required. It should not be set for master-ineligible
35-
nodes, master-eligible nodes joining an existing cluster, or cluster restarts.
34+
remove this setting from each node's configuration. It should not be set for
35+
master-ineligible nodes, master-eligible nodes joining an existing cluster, or
36+
when restarting one or more nodes.
3637

3738
It is technically sufficient to set `cluster.initial_master_nodes` on a single
3839
master-eligible node in the cluster, and only to mention that single node in the

docs/reference/modules/discovery/discovery-settings.asciidoc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,11 @@ this setting, see <<single-node-discovery>>.
5050

5151
`cluster.initial_master_nodes`::
5252
(<<static-cluster-setting,Static>>)
53-
Sets the initial set of master-eligible nodes in a brand-new cluster. By default
54-
this list is empty, meaning that this node expects to join a cluster that has
55-
already been bootstrapped. See <<initial_master_nodes>>.
53+
Sets the initial set of master-eligible nodes in a brand-new cluster. By
54+
default this list is empty, meaning that this node expects to join a cluster
55+
that has already been bootstrapped. Remove this setting once the cluster has
56+
formed. Do not use this setting when restarting nodes or when adding new nodes
57+
to an existing cluster. See <<initial_master_nodes>>.
5658

5759
[discrete]
5860
==== Expert settings

docs/reference/setup/bootstrap-checks.asciidoc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,3 +254,11 @@ properties:
254254
- `discovery.seed_hosts`
255255
- `discovery.seed_providers`
256256
- `cluster.initial_master_nodes`
257+
258+
Note that you should remove `cluster.initial_master_nodes` from the
259+
configuration after the cluster has started for the first time. Do not use this
260+
setting when restarting nodes or when adding new nodes to an existing cluster.
261+
Instead, configure `discovery.seed_hosts` or `discovery.seed_providers`. If you
262+
do not need any discovery configuration, for instance if running a single-node
263+
cluster, set `discovery.seed_hosts: []` to disable discovery and satisfy this
264+
bootstrap check.

docs/reference/setup/important-settings/discovery-settings.asciidoc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,10 @@ mode, you must explicitly list the master-eligible nodes whose votes should be
5959
counted in the very first election. You set this list using the
6060
`cluster.initial_master_nodes` setting.
6161

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.
62+
IMPORTANT: After the cluster forms successfully for the first time, remove the
63+
`cluster.initial_master_nodes` setting from each node's configuration. Do not
64+
use this setting when restarting a cluster or adding a new node to an existing
65+
cluster.
6566

6667
[source,yaml]
6768
--------------------------------------------------

0 commit comments

Comments
 (0)