Skip to content

Commit ece8c65

Browse files
authored
Decrease leader and follower check timeout (#38298)
Reduces the leader and follower check timeout to 3 * 10 = 30s instead of 3 * 30 = 90s, with 30s still being a very long time for a node to be completely unresponsive.
1 parent 9b64558 commit ece8c65

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Discovery and cluster formation are affected by the following settings:
4444
`cluster.fault_detection.follower_check.timeout`::
4545

4646
Sets how long the elected master waits for a response to a follower check
47-
before considering it to have failed. Defaults to `30s`.
47+
before considering it to have failed. Defaults to `10s`.
4848

4949
`cluster.fault_detection.follower_check.retry_count`::
5050

@@ -60,7 +60,7 @@ Discovery and cluster formation are affected by the following settings:
6060
`cluster.fault_detection.leader_check.timeout`::
6161

6262
Sets how long each node waits for a response to a leader check from the
63-
elected master before considering it to have failed. Defaults to `30s`.
63+
elected master before considering it to have failed. Defaults to `10s`.
6464

6565
`cluster.fault_detection.leader_check.retry_count`::
6666

server/src/main/java/org/elasticsearch/cluster/coordination/FollowersChecker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public class FollowersChecker {
7777
// the timeout for each check sent to each node
7878
public static final Setting<TimeValue> FOLLOWER_CHECK_TIMEOUT_SETTING =
7979
Setting.timeSetting("cluster.fault_detection.follower_check.timeout",
80-
TimeValue.timeValueMillis(30000), TimeValue.timeValueMillis(1), Setting.Property.NodeScope);
80+
TimeValue.timeValueMillis(10000), TimeValue.timeValueMillis(1), Setting.Property.NodeScope);
8181

8282
// the number of failed checks that must happen before the follower is considered to have failed.
8383
public static final Setting<Integer> FOLLOWER_CHECK_RETRY_COUNT_SETTING =

server/src/main/java/org/elasticsearch/cluster/coordination/LeaderChecker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public class LeaderChecker {
7171
// the timeout for each check sent to the leader
7272
public static final Setting<TimeValue> LEADER_CHECK_TIMEOUT_SETTING =
7373
Setting.timeSetting("cluster.fault_detection.leader_check.timeout",
74-
TimeValue.timeValueMillis(30000), TimeValue.timeValueMillis(1), Setting.Property.NodeScope);
74+
TimeValue.timeValueMillis(10000), TimeValue.timeValueMillis(1), Setting.Property.NodeScope);
7575

7676
// the number of failed checks that must happen before the leader is considered to have failed.
7777
public static final Setting<Integer> LEADER_CHECK_RETRY_COUNT_SETTING =

0 commit comments

Comments
 (0)