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

only keep dedupIds no older than 6 months to make the rocksdb size consistent #20

Open
jackyjia opened this issue Oct 16, 2022 · 0 comments
Assignees
Labels

Comments

@jackyjia
Copy link
Contributor

Background

Each journal entry's dedup id is kept in rocksdb, to avoid processing the same journal entry multiple times. However if we keep adding all dedup ids in rocksdb, the rocksdb size will increase and eventually run out of disk space. To make the size consistent, we can remove some dedup ids whose validTime is for example 6 months old (configurable). And if ledger receives a journal entry older than 6 months, it'll reject to avoid processing the same request twice.

Acceptance Criteria

  • A scheduled job to remove dedup ids older than a x days
  • If ledger receives a journal entry older than x days, reject
  • x days can be configured on the fly
@jackyjia jackyjia self-assigned this Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant