Skip to content

Commit 2532761

Browse files
committed
increase the clean interval of filter cache
1 parent 9096baf commit 2532761

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/org/elasticsearch/indices/cache/filter/IndicesFilterCache.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,11 @@ public IndicesFilterCache(Settings settings, ThreadPool threadPool, NodeSettings
104104
this.threadPool = threadPool;
105105
this.size = componentSettings.get("size", "20%");
106106
this.expire = componentSettings.getAsTime("expire", null);
107-
this.cleanInterval = componentSettings.getAsTime("clean_interval", TimeValue.timeValueSeconds(1));
107+
this.cleanInterval = componentSettings.getAsTime("clean_interval", TimeValue.timeValueSeconds(60));
108108
computeSizeInBytes();
109109
buildCache();
110-
logger.debug("using [node] filter cache with size [{}], actual_size [{}]", size, new ByteSizeValue(sizeInBytes));
110+
logger.debug("using [node] weighted filter cache with size [{}], actual_size [{}], expire [{}], clean_interval [{}]",
111+
size, new ByteSizeValue(sizeInBytes), expire, cleanInterval);
111112

112113
nodeSettingsService.addListener(new ApplySettings());
113114

0 commit comments

Comments
 (0)