Skip to content

Commit

Permalink
increase the clean interval of filter cache
Browse files Browse the repository at this point in the history
  • Loading branch information
kimchy committed Oct 1, 2012
1 parent 9096baf commit 2532761
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand Down

0 comments on commit 2532761

Please sign in to comment.