-
Notifications
You must be signed in to change notification settings - Fork 13.8k
[FLINK-15532][rocksdb] Enable strict capacity limit for memory usage for RocksDB #16835
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
Conversation
|
Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community Automated ChecksLast check on commit cb9bab9 (Mon Aug 16 04:41:38 UTC 2021) Warnings:
Mention the bot in a comment to re-run the automated checks. Review Progress
Please see the Pull Request Review Guide for a full explanation of the review process. DetailsThe Bot is tracking the review progress through labels. Labels are applied according to the order of the review items. For consensus, approval by a Flink committer of PMC member is required Bot commandsThe @flinkbot bot supports the following commands:
|
carp84
left a comment
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.
+1. However, it seems to me the fix in RocksDB only prevents the process crashing instead of completely restrict the memory usage, right? And we still need the calculations to preserve enough space and prevent memory over-usage? If so, I suggest we leave an explicit document in JIRA.
cc @StephanEwen
|
@carp84 , RocksDB's implementation of memory control actually has two parts:
|
I see, thanks for the information. |
|
The test failed due to fail to insert block cache, it seems RocksDB will throw exception directly if no more spaces in block cache. I'll check what to do to avoid this. |
|
This PR is being marked as stale since it has not had any activity in the last 180 days. If you are having difficulty finding a reviewer, please reach out to the [community](https://flink.apache.org/what-is-flink/community/). If this PR is no longer valid or desired, please feel free to close it. If no activity occurs in the next 90 days, it will be automatically closed. |
|
This PR has been closed since it has not had any activity in 120 days. |
What is the purpose of the change
Enable strict capacity limit for memory usage for RocksDB.
Brief change log
Change the constructor of
LRUCacheto strict mode.Verifying this change
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:
@Public(Evolving): noDocumentation