Overhauling TiKV RocksDB configuration file#5746
Conversation
|
@tabokie Could you please involve technical review(s)? Thanks~ |
|
This change isn't urgent (not due before next release). @yiwu-arbug can help take a look. |
|
BTW I don't have the permission to request reviews in this repo. |
You can use the |
|
/cc @yiwu-arbug |
| ## rocksdb.writecf | ||
|
|
||
| Configuration items related to `rocksdb.writecf` | ||
| Configuration items related to `rocksdb.writecf`, which are identical to `rocksdb.defaultcf`. Those not listed here have the same default value and are recommended to be set the same as `rocksdb.defaultcf`. |
There was a problem hiding this comment.
"Those not listed here have the same default value and are recommended to be set the same as rocksdb.defaultcf."
This may not be always true.
There was a problem hiding this comment.
There are two parts in this statement. I think at least we should make sure the first part stay true. For master branch I've checked and repaired all the violating items.
There was a problem hiding this comment.
then how about removing "and are recommended to be set the same as rocksdb.defaultcf."?
|
@yiwu-arbug: Thanks for your review. The bot only counts approvals from reviewers and higher roles in list, but you're still welcome to leave your comments. DetailsIn response to this: Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
| ## rocksdb.writecf | ||
|
|
||
| Configuration items related to `rocksdb.writecf` | ||
| Configuration items related to `rocksdb.writecf`, which are identical to `rocksdb.defaultcf`. Those not listed here have the same default value as `rocksdb.defaultcf`. |
There was a problem hiding this comment.
What does it mean by "Those not listed here"? Are there any config items that are not documented here?
There was a problem hiding this comment.
Yes, they are the same as rocksdb.defaultcf. Listing all of the duplicates would be cumbersome.
There was a problem hiding this comment.
I don't think so. Suppose that you want to see a TiKV config item under rocksdb.writecf but are told to see the config items under rocksdb.defaultcf (another section) because they are duplicated and, therefore, documented only in one place. Both document completeness and user experience are compromised. One possible solution to that is to document all the config items in one place but the title should incorporate both rocksdb.writecf and rocksdb.defaultcf. A note should also be given to explain why they are put together.
| + The minimum SST file size when the compaction guard is enabled. This configuration prevents SST files from being too small when the compaction guard is enabled. | ||
| + Default value: `"8MB"` | ||
| + Unit: KB|MB|GB | ||
| Configuration items related to `rocksdb.lockcf`, which are identical to `rocksdb.defaultcf`. Those not listed here have the same default value as `rocksdb.defaultcf`. |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
|
In response to a cherrypick label: new pull request created: #5871. |
|
In response to a cherrypick label: new pull request created: #5872. |
|
In response to a cherrypick label: new pull request created: #5873. |
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
First-time contributors' checklist
What is changed, added or deleted? (Required)
writecfandlockcfonly listed partial configuration items, and their selections aren't consistent.Which TiDB version(s) do your changes apply to? (Required)
What is the related PR or file link(s)?
Do your changes match any of the following descriptions?