Skip to content

Commit 96ac4f6

Browse files
Increase replica_unassigned_buffer_time default from 3s to 5s (#112834)
Increase the default value of health.shards_availability.replica_unassigned_buffer_time to 5 seconds. This values in the identification of unavailable shards on serverless. Increasing the value to 5s keep more shards from going red transiently, while still being low enough to go red quickly if there is an actual availability issue. Related to #112066
1 parent 6e9ef66 commit 96ac4f6

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

docs/changelog/112834.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 112834
2+
summary: Increase `replica_unassigned_buffer_time` default from 3s to 5s
3+
area: Health
4+
type: enhancement
5+
issues: []

server/src/main/java/org/elasticsearch/cluster/routing/allocation/shards/ShardsAvailabilityHealthIndicatorService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public class ShardsAvailabilityHealthIndicatorService implements HealthIndicator
120120
*/
121121
public static final Setting<TimeValue> REPLICA_UNASSIGNED_BUFFER_TIME = Setting.timeSetting(
122122
"health.shards_availability.replica_unassigned_buffer_time",
123-
TimeValue.timeValueSeconds(3),
123+
TimeValue.timeValueSeconds(5),
124124
TimeValue.timeValueSeconds(0),
125125
TimeValue.timeValueSeconds(20),
126126
Setting.Property.NodeScope,

0 commit comments

Comments
 (0)