VictoriaMetrics/lib/blockcache
Aliaksandr Valialkin 010dc15d16
lib/blockcache: do not cache entries, which were attempted to be accessed 1 or 2 times
Previously entries which were accessed only 1 time weren't cached.
It has been appeared that some rarely executed heavy queries may read indexdb block twice
in a row instead of once. There is no need in caching such a block then.
This change should eliminate cache size spikes for indexdb/dataBlocks when such heavy queries are executed.

Expose -blockcache.missesBeforeCaching command-line flag, which can be used for fine-tuning
the number of cache misses needed before storing the block in the caching.
2023-11-10 22:28:03 +01:00
..
blockcache.go lib/blockcache: do not cache entries, which were attempted to be accessed 1 or 2 times 2023-11-10 22:28:03 +01:00
blockcache_test.go lib/blockcache: do not cache entries, which were attempted to be accessed 1 or 2 times 2023-11-10 22:28:03 +01:00
blockcache_timing_test.go lib/blockcache: use higher number of shards for higher number of CPU cores 2022-02-10 19:06:12 +02:00