|
@@ -62,7 +62,7 @@ public final class IndexSettings {
|
|
Setting.boolSetting("index.query.parse.allow_unmapped_fields", true, Property.IndexScope);
|
|
Setting.boolSetting("index.query.parse.allow_unmapped_fields", true, Property.IndexScope);
|
|
public static final Setting<TimeValue> INDEX_TRANSLOG_SYNC_INTERVAL_SETTING =
|
|
public static final Setting<TimeValue> INDEX_TRANSLOG_SYNC_INTERVAL_SETTING =
|
|
Setting.timeSetting("index.translog.sync_interval", TimeValue.timeValueSeconds(5), TimeValue.timeValueMillis(100),
|
|
Setting.timeSetting("index.translog.sync_interval", TimeValue.timeValueSeconds(5), TimeValue.timeValueMillis(100),
|
|
- Property.IndexScope);
|
|
|
|
|
|
+ Property.Dynamic, Property.IndexScope);
|
|
public static final Setting<TimeValue> INDEX_SEARCH_IDLE_AFTER =
|
|
public static final Setting<TimeValue> INDEX_SEARCH_IDLE_AFTER =
|
|
Setting.timeSetting("index.search.idle.after", TimeValue.timeValueSeconds(30),
|
|
Setting.timeSetting("index.search.idle.after", TimeValue.timeValueSeconds(30),
|
|
TimeValue.timeValueMinutes(0), Property.IndexScope, Property.Dynamic);
|
|
TimeValue.timeValueMinutes(0), Property.IndexScope, Property.Dynamic);
|
|
@@ -316,7 +316,7 @@ public final class IndexSettings {
|
|
private final boolean queryStringAllowLeadingWildcard;
|
|
private final boolean queryStringAllowLeadingWildcard;
|
|
private final boolean defaultAllowUnmappedFields;
|
|
private final boolean defaultAllowUnmappedFields;
|
|
private volatile Translog.Durability durability;
|
|
private volatile Translog.Durability durability;
|
|
- private final TimeValue syncInterval;
|
|
|
|
|
|
+ private volatile TimeValue syncInterval;
|
|
private volatile TimeValue refreshInterval;
|
|
private volatile TimeValue refreshInterval;
|
|
private volatile ByteSizeValue flushThresholdSize;
|
|
private volatile ByteSizeValue flushThresholdSize;
|
|
private volatile TimeValue translogRetentionAge;
|
|
private volatile TimeValue translogRetentionAge;
|
|
@@ -501,6 +501,7 @@ public final class IndexSettings {
|
|
MergeSchedulerConfig.MAX_MERGE_COUNT_SETTING, mergeSchedulerConfig::setMaxThreadAndMergeCount);
|
|
MergeSchedulerConfig.MAX_MERGE_COUNT_SETTING, mergeSchedulerConfig::setMaxThreadAndMergeCount);
|
|
scopedSettings.addSettingsUpdateConsumer(MergeSchedulerConfig.AUTO_THROTTLE_SETTING, mergeSchedulerConfig::setAutoThrottle);
|
|
scopedSettings.addSettingsUpdateConsumer(MergeSchedulerConfig.AUTO_THROTTLE_SETTING, mergeSchedulerConfig::setAutoThrottle);
|
|
scopedSettings.addSettingsUpdateConsumer(INDEX_TRANSLOG_DURABILITY_SETTING, this::setTranslogDurability);
|
|
scopedSettings.addSettingsUpdateConsumer(INDEX_TRANSLOG_DURABILITY_SETTING, this::setTranslogDurability);
|
|
|
|
+ scopedSettings.addSettingsUpdateConsumer(INDEX_TRANSLOG_SYNC_INTERVAL_SETTING, this::setTranslogSyncInterval);
|
|
scopedSettings.addSettingsUpdateConsumer(MAX_RESULT_WINDOW_SETTING, this::setMaxResultWindow);
|
|
scopedSettings.addSettingsUpdateConsumer(MAX_RESULT_WINDOW_SETTING, this::setMaxResultWindow);
|
|
scopedSettings.addSettingsUpdateConsumer(MAX_INNER_RESULT_WINDOW_SETTING, this::setMaxInnerResultWindow);
|
|
scopedSettings.addSettingsUpdateConsumer(MAX_INNER_RESULT_WINDOW_SETTING, this::setMaxInnerResultWindow);
|
|
scopedSettings.addSettingsUpdateConsumer(MAX_ADJACENCY_MATRIX_FILTERS_SETTING, this::setMaxAdjacencyMatrixFilters);
|
|
scopedSettings.addSettingsUpdateConsumer(MAX_ADJACENCY_MATRIX_FILTERS_SETTING, this::setMaxAdjacencyMatrixFilters);
|
|
@@ -701,6 +702,10 @@ public final class IndexSettings {
|
|
return syncInterval;
|
|
return syncInterval;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public void setTranslogSyncInterval(TimeValue translogSyncInterval) {
|
|
|
|
+ this.syncInterval = translogSyncInterval;
|
|
|
|
+ }
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* Returns this interval in which the shards of this index are asynchronously refreshed. {@code -1} means async refresh is disabled.
|
|
* Returns this interval in which the shards of this index are asynchronously refreshed. {@code -1} means async refresh is disabled.
|
|
*/
|
|
*/
|