Skip to content

Commit 2c8e1b0

Browse files
committed
Clarify that discovery ignores master-ineligibles (#44835)
The changes in #32006 mean that the discovery process can no longer use master-ineligible nodes as a stepping-stone between master-eligible nodes. This was normally an indication of a strange and possibly-fragile configuration and was not recommended, but this commit adds a note to the breaking changes docs to note that this kind of configuration is more obviously broken in recent versions.
1 parent bb1859a commit 2c8e1b0

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

Diff for: docs/reference/migration/migrate_7_0/discovery.asciidoc

+14
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,17 @@ pings, each of which times out after 10 seconds. Thus a node that is
7070
unresponsive for longer than 30 seconds is liable to be removed from the
7171
cluster. Previously the default timeout for each ping was 30 seconds, so that
7272
an unresponsive node might be kept in the cluster for over 90 seconds.
73+
74+
[float]
75+
==== Master-ineligible nodes are ignored by discovery
76+
77+
In earlier versions it was possible to use master-ineligible nodes during the
78+
discovery process, either as seed nodes or to transfer discovery gossip
79+
indirectly between the master-eligible nodes. Clusters that relied on
80+
master-ineligible nodes like this were fragile and unable to automatically
81+
recover from some kinds of failure. Discovery now involves only the
82+
master-eligible nodes in the cluster so that it is not possible to rely on
83+
master-ineligible nodes like this. You should configure
84+
<<modules-discovery-hosts-providers,`discovery.seed_hosts` or another seed
85+
hosts provider>> to provide the addresses of all the master-eligible nodes in
86+
your cluster.

Diff for: docs/reference/modules/discovery/discovery.asciidoc

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ This process starts with a list of _seed_ addresses from one or more
1111
of any master-eligible nodes that were in the last-known cluster. The process
1212
operates in two phases: First, each node probes the seed addresses by
1313
connecting to each address and attempting to identify the node to which it is
14-
connected. Secondly it shares with the remote node a list of all of its known
15-
master-eligible peers and the remote node responds with _its_ peers in turn.
16-
The node then probes all the new nodes that it just discovered, requests their
17-
peers, and so on.
14+
connected and to verify that it is master-eligible. Secondly, if successful, it
15+
shares with the remote node a list of all of its known master-eligible peers
16+
and the remote node responds with _its_ peers in turn. The node then probes all
17+
the new nodes that it just discovered, requests their peers, and so on.
1818

1919
If the node is not master-eligible then it continues this discovery process
2020
until it has discovered an elected master node. If no elected master is

0 commit comments

Comments
 (0)