-
Notifications
You must be signed in to change notification settings - Fork 518
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
HDDS-11230. Make RocksDB cache configurable in Ozone Manager. #7117
Conversation
There are some test errors, I will update the code |
Hi @weimingdiit thanks for looking in to this. Maybe it would be better to support RocksDB config files directly instead of needing to expose each config through the Ozone configuration? See the RocksDB docs on this for reference. We could first load the options set by the user in this file, and then override any in Ozone that must be set a certain way, for example creating column families that don't exist. |
2d9c40f
to
5ad9260
Compare
hadoop-hdds/common/src/main/java/org/apache/hadoop/ozone/OzoneConfigKeys.java
Outdated
Show resolved
Hide resolved
515e246
to
efc9f01
Compare
@errose28 Thank you very much for your comments,this is a good idea. However, for the current version, could we first make some of the more performance-critical parameters configurable, such as the ones I mentioned? |
@jojochuang Could you help review this PR? This PR is related to some caching in RocksDB. My current thought is to keep the status quo unchanged in this PR and then create a new issue to make all RocksDB parameters configurable. I'd like to hear your thoughts on this—what do you think? |
I thought about it, maybe it would be more convenient for us to manage it through ozone configuration, so that our configuration will have only one file, which is easier to manage. |
I'm ok with adding this field in the Ozone configuration to start if there are no immediate plans to support the full RocksDB INI file. We can file that as a follow up Jira. In the future I do think we should support the INI file instead of propagating every RocksDB config we might need into the Ozone configuration. If we start getting into serious RocksDB tuning then there will be too many options in RocksDB for that approach to be sustainable long term. |
e3981ec
to
e05110c
Compare
@errose28 This is a good idea. Maybe I will close this PR, and then make all RocksDB parameters configurable in #7150 |
What changes were proposed in this pull request?
Make RocksDB cache configurable in Ozone Manager.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-11230
How was this patch tested?
unit tests