VictoriaMetrics/lib/blockcache
Nikolay 4cf6219e07
lib/{storage,regexpcache}: replaces regexpCacheMap with LRU cache (#2293)
* lib/{storage,regexpcache}: replaces regexpCacheMap with LRU cache

It should decrease memory usage for regexp caching
with storing cacheEntry by pointer - golang map should be able to effectivly shrink it's size
original issue with this case - unexpected map grows and storage OOM

Apply suggestions from code review

Co-authored-by: Roman Khavronenko <roman@victoriametrics.com>

Adds missing metrics for regexp cache and regexpPrefixes cache

* wip

* wip

Co-authored-by: Aliaksandr Valialkin <valyala@victoriametrics.com>
2022-03-26 12:57:27 +02:00
..
blockcache_test.go lib/{storage,regexpcache}: replaces regexpCacheMap with LRU cache (#2293) 2022-03-26 12:57:27 +02:00
blockcache_timing_test.go lib/blockcache: use higher number of shards for higher number of CPU cores 2022-02-10 19:11:11 +02:00
blockcache.go lib/blockcache: properly remove references to deleted parts 2022-03-18 17:07:54 +02:00