mirror of
https://github.com/hanzoai/metrics.git
synced 2026-10-30 20:03:39 +00:00
lrucache causes huge cpu usage in some caches. See #10297. There was a hypothesis that this was due to too short ttl in lrucache. Setting it to 1h (the default workingsetcache eviction period) but it did not completely eliminate the problem. The CPU utilization was not huge but still high. See #10416. Thus reverting back fix such deployments. This solution is temporary because the cache consumes at least 32MB. There is one instance per indexDB which means that if the retention is 3y then the total memory utilized by this cache will be over 1GB and most of it will be unused. Signed-off-by: Artem Fetishev <[email protected]>
vmstorage performs the following tasks:
-
Accepts inserts from
vminsertand stores them to local storage. -
Performs select requests from
vmselect.