Skip to content

Commit

Permalink
Reduce stateless default refresh to 5s
Browse files Browse the repository at this point in the history
Having done recent optimizations, we can now start reducing the
refresh interval for stateless. As a first step we will reduce
the default to 5s.

Relates ES-7774
  • Loading branch information
henningandersen committed Jun 5, 2024
1 parent fdb5058 commit 5e042bd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ public final class IndexSettings {
TimeValue.MINUS_ONE,
Property.NodeScope
); // TODO: remove setting
public static TimeValue STATELESS_DEFAULT_REFRESH_INTERVAL = TimeValue.timeValueSeconds(15); // TODO: this value is still not final
public static TimeValue STATELESS_DEFAULT_REFRESH_INTERVAL = TimeValue.timeValueSeconds(5); // TODO: this value is still not final
public static TimeValue STATELESS_MIN_NON_FAST_REFRESH_INTERVAL = TimeValue.timeValueSeconds(5);
public static final Setting<TimeValue> INDEX_REFRESH_INTERVAL_SETTING = Setting.timeSetting("index.refresh_interval", (settings) -> {
if (EXISTING_SHARDS_ALLOCATOR_SETTING.get(settings).equals("stateless") && INDEX_FAST_REFRESH_SETTING.get(settings) == false) {
Expand Down

0 comments on commit 5e042bd

Please sign in to comment.