change default async interval to 1 second, to do merges (if needed) more often

This commit is contained in:
kimchy 2011-01-26 23:29:24 +02:00
parent 00fa7c95fb
commit 30f54fe23e
1 changed files with 1 additions and 1 deletions

View File

@ -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);