From 96ac4f60bd6e9955d63b185f50c4dc77082d4f99 Mon Sep 17 00:00:00 2001 From: Parker Timmins Date: Thu, 12 Sep 2024 15:25:05 -0500 Subject: [PATCH] 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 --- docs/changelog/112834.yaml | 5 +++++ .../shards/ShardsAvailabilityHealthIndicatorService.java | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 docs/changelog/112834.yaml diff --git a/docs/changelog/112834.yaml b/docs/changelog/112834.yaml new file mode 100644 index 0000000000000..f75d03fd3ef8f --- /dev/null +++ b/docs/changelog/112834.yaml @@ -0,0 +1,5 @@ +pr: 112834 +summary: Increase `replica_unassigned_buffer_time` default from 3s to 5s +area: Health +type: enhancement +issues: [] diff --git a/server/src/main/java/org/elasticsearch/cluster/routing/allocation/shards/ShardsAvailabilityHealthIndicatorService.java b/server/src/main/java/org/elasticsearch/cluster/routing/allocation/shards/ShardsAvailabilityHealthIndicatorService.java index 79e0feaa7da0c..fc2cf6266aa99 100644 --- a/server/src/main/java/org/elasticsearch/cluster/routing/allocation/shards/ShardsAvailabilityHealthIndicatorService.java +++ b/server/src/main/java/org/elasticsearch/cluster/routing/allocation/shards/ShardsAvailabilityHealthIndicatorService.java @@ -120,7 +120,7 @@ public class ShardsAvailabilityHealthIndicatorService implements HealthIndicator */ public static final Setting REPLICA_UNASSIGNED_BUFFER_TIME = Setting.timeSetting( "health.shards_availability.replica_unassigned_buffer_time", - TimeValue.timeValueSeconds(3), + TimeValue.timeValueSeconds(5), TimeValue.timeValueSeconds(0), TimeValue.timeValueSeconds(20), Setting.Property.NodeScope,