Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DB garbage collector #17

Open
bamidev opened this issue May 14, 2024 · 0 comments
Open

DB garbage collector #17

bamidev opened this issue May 14, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@bamidev
Copy link
Owner

bamidev commented May 14, 2024

There still needs to be a 'garbage collector', which will remove old blocks, files & objects if the configured amount of 'space limit' is exceeded.

There are two limits.
recent_persistence_limit
prolonged_persistence_limit

The first limit describes how many things are to be stored no matter what.
The second limit describes how many things are to be stored if the configured capacity allows it.
This also means that anything beyond the second limit will be deleted.
The second size can also be unset, in which case your node will try to store all of it.

Defaults:
Objects:
recent_persistence_limit = 1000
prolonged_persistence_limit = 1000000
Files:
recent_persistence_limit = 1000
prolonged_persistence_limit = 100000
Blocks:
recent_persistence_limit = 10MiB
prolonged_persistence_limit = 90MiB

A 'recent' file is a file that is used in a recent object, and a 'recent' block is a block that is used in a 'recent' file.
The block limits are not about the number of blocks, but about the actual size of them.

@bamidev bamidev self-assigned this May 14, 2024
@bamidev bamidev modified the milestones: v0.1, v0.2, v1.0 May 14, 2024
@bamidev bamidev modified the milestones: v0.2, v0.4, v0.5 May 29, 2024
@bamidev bamidev added the enhancement New feature or request label May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant