From 30f54fe23e8a782ffd2db3e6e6d73b138b64645a Mon Sep 17 00:00:00 2001 From: kimchy Date: Wed, 26 Jan 2011 23:29:24 +0200 Subject: [PATCH] change default async interval to 1 second, to do merges (if needed) more often --- .../elasticsearch/index/shard/service/InternalIndexShard.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/index/shard/service/InternalIndexShard.java b/modules/elasticsearch/src/main/java/org/elasticsearch/index/shard/service/InternalIndexShard.java index 84e5651cad0..cd6b9b9821b 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/index/shard/service/InternalIndexShard.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/index/shard/service/InternalIndexShard.java @@ -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);