default value for
"indices.queries.cache.count" is 1000 and
"indices.queries.cache.size" is "10%"
my question is: if 1000 query won't occupy 10% memory, will it start to retire key or it won't until the memory is occupy 10%?
default value for
"indices.queries.cache.count" is 1000 and
"indices.queries.cache.size" is "10%"
my question is: if 1000 query won't occupy 10% memory, will it start to retire key or it won't until the memory is occupy 10%?
after read the code, it turns out that weather count or size beyond the max will cause evication of cache.
boolean requiresEviction() {
int size = this.mostRecentlyUsedQueries.size();
return size == 0?false:size > this.maxSize || this.ramBytesUsed() > this.maxRamBytesUsed;
}
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.