Use TTL for blobovnicza tree cache #866
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#866
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Blobovnicza tree holds blobovniczas opened in cache even if they are not used. It consumes system resources.
Expected Behavior
Blobovnicza tree must close unused blobovniczas in cache after some amount of time.
Current Behavior
Blobovnicza tree holds unused blobovniczas in cache.
Why is it labeled as
bug
?Resource using without any reason looks like a bug.
It was intended (because we use LRU cache) and the reason is that it was use "less than 1000 blobovniczas ago".
Let's fix this, but I have removed the label bug -- this is very much a new feature to me.
Test case:
node
config forblobovnicza
:opened_cache_ttl
node
processReverted due to the problem with hashicorp's expirable cache.
Details - #1004
Will be fixed in scope of #1017
Checked the following list of caches:
required to build expiration logic under the cache
no internal mechanism to remove from cache expired elements
https://github.com/go-pkgz/expirable-cache implements LRU and allow deleting expired in external routine.
Closed via #1017