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

fix(share/eds): scale up inverted_index badger levels #2591

Merged
merged 2 commits into from
Aug 22, 2023

Conversation

walldiss
Copy link
Member

Current instance of badger uses default value (7) for amount of used levels, that allows badger to grow up to 1.1TiB. This limit could be reaching within 1 week of 128 ods size blocks, so we need to bump the value to at least 8 levels (11 TiB).

@walldiss walldiss self-assigned this Aug 21, 2023
@walldiss walldiss added kind:fix Attached to bug-fixing PRs area:storage labels Aug 21, 2023
@walldiss walldiss marked this pull request as ready for review August 21, 2023 14:45
@Wondertan
Copy link
Member

Why not 9 or 10?

@renaynay
Copy link
Member

Can this be re-configured or would it be breaking?

@walldiss
Copy link
Member Author

9 levels is harder for compaction there is reasonable doubts we would reach 11TB inverted index size before getting rid of it

@walldiss
Copy link
Member Author

Can this be re-configured or would it be breaking?

It is not breaking, but could cause node to do long compaction while preventing all store related operation. Compaction could take 1-2 hours on badger size of 1.1 TB. Should be less for smaller sizes, but I don't have exact numbers.

@Wondertan Wondertan enabled auto-merge (squash) August 22, 2023 13:08
@Wondertan Wondertan merged commit 10351be into celestiaorg:main Aug 22, 2023
renaynay pushed a commit to renaynay/celestia-node that referenced this pull request Aug 23, 2023
Current instance of badger uses default value (7) for amount of used levels, that allows badger to grow up to 1.1TiB. This limit could be reaching within 1 week of 128 ods size blocks, so we need to bump the value to at least 8 levels (11 TiB).
walldiss added a commit that referenced this pull request Sep 22, 2023
Current instance of badger uses default value (7) for amount of used levels, that allows badger to grow up to 1.1TiB. This limit could be reaching within 1 week of 128 ods size blocks, so we need to bump the value to at least 8 levels (11 TiB).

(cherry picked from commit 10351be)
walldiss added a commit to walldiss/celestia-node that referenced this pull request Sep 25, 2023
Current instance of badger uses default value (7) for amount of used levels, that allows badger to grow up to 1.1TiB. This limit could be reaching within 1 week of 128 ods size blocks, so we need to bump the value to at least 8 levels (11 TiB).

(cherry picked from commit 10351be)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:storage kind:fix Attached to bug-fixing PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants