change default async interval to 1 second, to do merges (if needed) more often
This commit is contained in:
parent
00fa7c95fb
commit
30f54fe23e
|
@ -580,7 +580,7 @@ public class InternalIndexShard extends AbstractIndexShardComponent implements I
|
|||
}
|
||||
// since we can do async merging, it will not be called explicitly when indexing (adding / deleting docs), and only when flushing
|
||||
// so, make sure we periodically call it
|
||||
TimeValue optimizeInterval = indexSettings.getAsTime("index.merge.async_interval", TimeValue.timeValueSeconds(30));
|
||||
TimeValue optimizeInterval = indexSettings.getAsTime("index.merge.async_interval", TimeValue.timeValueSeconds(1));
|
||||
if (optimizeInterval.millis() > 0) {
|
||||
optimizeScheduleFuture = threadPool.scheduleWithFixedDelay(new EngineOptimizer(), optimizeInterval);
|
||||
logger.debug("scheduling optimizer / merger every {}", optimizeInterval);
|
||||
|
|
Loading…
Reference in New Issue