-
Notifications
You must be signed in to change notification settings - Fork 241
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
Problem: memory leak in archive node #1526
Conversation
- Suspect large `application.db` - try cache index/filters
WalkthroughThis update enhances the application's storage subsystem by introducing caching options in the RocksDB database. The modifications focus on optimizing memory usage, specifically through caching index and filter data, which can lead to improved performance and efficiency during data operations. This change is part of ongoing efforts to manage resources effectively, aiming for better scalability in production environments. Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
Signed-off-by: yihuang <[email protected]>
- Suspect large `application.db` - try cache index/filters Update CHANGELOG.md Signed-off-by: yihuang <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1526 +/- ##
===========================================
+ Coverage 17.54% 36.84% +19.29%
===========================================
Files 87 117 +30
Lines 5273 8124 +2851
===========================================
+ Hits 925 2993 +2068
- Misses 4238 4766 +528
- Partials 110 365 +255 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- CHANGELOG.md (1 hunks)
- cmd/cronosd/opendb/opendb_rocksdb.go (1 hunks)
Files skipped from review due to trivial changes (1)
- CHANGELOG.md
Additional comments not posted (1)
cmd/cronosd/opendb/opendb_rocksdb.go (1)
113-115
: LGTM! Verify the impact of the new configurations.The changes to add
bbto.SetCacheIndexAndFilterBlocks(true)
andbbto.SetPinTopLevelIndexAndFilter(true)
are approved.However, ensure that these configurations do not negatively impact performance or functionality.
- Suspect large `application.db` - try cache index/filters Update CHANGELOG.md Signed-off-by: yihuang <[email protected]>
application.db
👮🏻👮🏻👮🏻 !!!! REFERENCE THE PROBLEM YOUR ARE SOLVING IN THE PR TITLE AND DESCRIBE YOUR SOLUTION HERE !!!! DO NOT FORGET !!!! 👮🏻👮🏻👮🏻
PR Checklist:
make
)make test
)go fmt
)golangci-lint run
)go list -json -m all | nancy sleuth
)Thank you for your code, it's appreciated! :)
Summary by CodeRabbit
New Features
Bug Fixes
Documentation