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

[Access] Add support for pruning the Registers DB #6065

Open
3 tasks
Tracked by #5761
peterargue opened this issue Jun 11, 2024 · 0 comments
Open
3 tasks
Tracked by #5761

[Access] Add support for pruning the Registers DB #6065

peterargue opened this issue Jun 11, 2024 · 0 comments

Comments

@peterargue
Copy link
Contributor

peterargue commented Jun 11, 2024

Problem Definition

Currently, the registers db stores data for all account updates starting from when indexing was initialized. This is great for an archive node, but produces a lot of data over time especially as the time between network upgrades increases. To keep disk and memory usage at more manageable levels, some operators may prefer to only keep a recent subset of the data.

Proposed Solution

Add support for pruning the registers DB to a configurable amount of history.

The operator should have control over the following new settings:

  • pruneThreshold which sets the number of blocks of history to keep
  • pruneInterval which sets the frequency of pruning rounds. This will be configured as a number of blocks of unpruned data below the threshold.
  • pruneThrottleDelay which sets a delay the pruner should use while iterating the db to reduce load on the overall system.

These settings will use a reasonable defaults so the operator is not required to configure them unless the way custom behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant