Skip to content

Commit 7dd32fb

Browse files
authored
Reduce verbosity-increase timeout to 3m (#81118)
Today we increase the verbosity of discovery failures after 5 minutes without a master. Unfortunately 5 minutes is a common orchestration timeout, so if discovery is broken then we see nodes being shut down just before they start to emit useful logs. This commit reduces the default timeout to 3 minutes to address that.
1 parent 69fe371 commit 7dd32fb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ the request to have failed. Defaults to `3s`.
8989
(<<static-cluster-setting,Static>>)
9090
Sets how long a node will attempt to discover its peers before it starts to log
9191
verbose messages describing why the connection attempts are failing. Defaults
92-
to `5m`.
92+
to `3m`.
9393

9494
`discovery.seed_resolver.max_concurrent_resolvers`::
9595
(<<static-cluster-setting,Static>>)

server/src/main/java/org/elasticsearch/discovery/PeerFinder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public abstract class PeerFinder {
6868
// the master before we start to emit more verbose logs.
6969
public static final Setting<TimeValue> VERBOSITY_INCREASE_TIMEOUT_SETTING = Setting.timeSetting(
7070
"discovery.find_peers_warning_timeout",
71-
TimeValue.timeValueMinutes(5),
71+
TimeValue.timeValueMinutes(3),
7272
TimeValue.timeValueMillis(1),
7373
Setting.Property.NodeScope
7474
);

0 commit comments

Comments
 (0)