Browse files

increase the clean interval of filter cache

  • Loading branch information...
1 parent 9096baf commit 2532761c516d56d62c282d63075aa5d91f9bf9f6 @kimchy kimchy committed Oct 1, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/main/java/org/elasticsearch/indices/cache/filter/IndicesFilterCache.java
View
5 src/main/java/org/elasticsearch/indices/cache/filter/IndicesFilterCache.java
@@ -104,10 +104,11 @@ public IndicesFilterCache(Settings settings, ThreadPool threadPool, NodeSettings
this.threadPool = threadPool;
this.size = componentSettings.get("size", "20%");
this.expire = componentSettings.getAsTime("expire", null);
- this.cleanInterval = componentSettings.getAsTime("clean_interval", TimeValue.timeValueSeconds(1));
+ this.cleanInterval = componentSettings.getAsTime("clean_interval", TimeValue.timeValueSeconds(60));
computeSizeInBytes();
buildCache();
- logger.debug("using [node] filter cache with size [{}], actual_size [{}]", size, new ByteSizeValue(sizeInBytes));
+ logger.debug("using [node] weighted filter cache with size [{}], actual_size [{}], expire [{}], clean_interval [{}]",
+ size, new ByteSizeValue(sizeInBytes), expire, cleanInterval);
nodeSettingsService.addListener(new ApplySettings());

0 comments on commit 2532761

Please sign in to comment.