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)!: use separate badger for inverted index #2517

Merged

Conversation

walldiss
Copy link
Member

Having same badger instance for dagstore shards and inverted index has proven to have hangup on Put operation for 1-10min. During tests it has shown, that splitting badger into 2 instances solves the hangup issue.

Also once #2479 is implemented and inverted index will needs to be removed. Separate badger will be much easier for users migration.

Copy link
Member

@Wondertan Wondertan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having same badger instance for dagstore shards and inverted index has proven to have hangup on Put operation for 1-10min.

According to @musalbas, no hangup happens with a single instance with 20 compactors. Is it worth verifying again to avoid having two badgers when we can have one only?

@walldiss
Copy link
Member Author

Considering inverted index is major bottleneck right now an we plan to remove it soon. I think it is worth to do separate badgers just for sake of easy migration.

If we keep inverted index in same badger as shards badger, we would need to manually remove each key. It would mean to find all keys by prefix and remove them one by one, which will take ages.

I've started test to try 20 compactors on single badger

@walldiss walldiss changed the title fix(share/eds): use separate badger for inverted index !fix(share/eds): use separate badger for inverted index Jul 31, 2023
@walldiss walldiss added the kind:break! Attached to breaking PRs label Jul 31, 2023
@Wondertan
Copy link
Member

Agreed

Wondertan
Wondertan previously approved these changes Jul 31, 2023
@Wondertan
Copy link
Member

Wondertan commented Jul 31, 2023

We still may wanna keep all the storage-breaking PRs together in a dedicated branch

@walldiss walldiss changed the title !fix(share/eds): use separate badger for inverted index fix(share/eds)!: use separate badger for inverted index Jul 31, 2023
@walldiss walldiss changed the base branch from main to v0.11.0-rc9 August 1, 2023 12:26
@walldiss walldiss dismissed Wondertan’s stale review August 1, 2023 12:26

The base branch was changed.

distractedm1nd
distractedm1nd previously approved these changes Aug 2, 2023
@walldiss walldiss requested a review from Wondertan August 2, 2023 10:35
@Wondertan Wondertan merged commit bd10113 into celestiaorg:v0.11.0-rc9 Aug 2, 2023
12 of 14 checks passed
walldiss added a commit to walldiss/celestia-node that referenced this pull request Aug 3, 2023
…2517)

Having same badger instance for dagstore shards and inverted index has proven to have hangup on Put operation for 1-10min. During tests it has shown, that splitting badger into 2 instances solves the hangup issue.

Also once celestiaorg#2479 is implemented and inverted index will needs to be removed. Separate badger will be much easier for users migration.
walldiss added a commit to walldiss/celestia-node that referenced this pull request Aug 4, 2023
…2517)

Having same badger instance for dagstore shards and inverted index has proven to have hangup on Put operation for 1-10min. During tests it has shown, that splitting badger into 2 instances solves the hangup issue.

Also once celestiaorg#2479 is implemented and inverted index will needs to be removed. Separate badger will be much easier for users migration.
renaynay pushed a commit to renaynay/celestia-node that referenced this pull request Aug 23, 2023
…2517)

Having same badger instance for dagstore shards and inverted index has proven to have hangup on Put operation for 1-10min. During tests it has shown, that splitting badger into 2 instances solves the hangup issue.

Also once celestiaorg#2479 is implemented and inverted index will needs to be removed. Separate badger will be much easier for users migration.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:shares Shares and samples area:storage kind:break! Attached to breaking PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants