Skip to content

Commit

Permalink
Increase stateless default refresh interval (#97225)
Browse files Browse the repository at this point in the history
For non-fast-refresh indices
  • Loading branch information
kingherc authored Jun 29, 2023
1 parent e18a66d commit 381499d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ public final class IndexSettings {
TimeValue.MINUS_ONE,
Property.NodeScope
); // TODO: remove setting
public static TimeValue STATELESS_DEFAULT_REFRESH_INTERVAL = TimeValue.timeValueSeconds(5); // TODO: settle on right value
public static TimeValue STATELESS_DEFAULT_REFRESH_INTERVAL = TimeValue.timeValueSeconds(10); // TODO: settle on right value
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) {
return STATELESS_DEFAULT_REFRESH_INTERVAL;
Expand Down

0 comments on commit 381499d

Please sign in to comment.