-
Notifications
You must be signed in to change notification settings - Fork 3.6k
RocksDB - Renaming / creation of some parameters and change of default value for create_if_missing #9692
Conversation
…er and use create_if_missing=true
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.
I have left comments in line to remove and update some of the comments accompanying the changes we have made.
("persistent-storage-bytes-per-sync", bpo::value<uint64_t>()->default_value(config::default_persistent_storage_bytes_per_sync), | ||
"Rocksdb write rate of flushes and compactions.") |
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.
Do we want its unit to be in MiB, but then it might be too coarse. If we do use MiB, here is a tricky one: you'll need to divide config::default_persistent_storage_bytes_per_sync by 1024 * 1024 here for the default value and then multiply back below.
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.
I was told that this value may be getting values such as 512K, that's why i didn't use the MiB here.
|
||
// Use this option to increase the number of threads | ||
// used to open the files. | ||
options.max_file_opening_threads = cfg.rocksdb_threads; // Default should be the # of Cores | ||
options.max_file_opening_threads = cfg.persistent_storage_num_threads; | ||
|
||
// Write Buffer Size - Sets the size of a single | ||
// memtable. Once memtable exceeds this size, it is | ||
// marked immutable and a new one is created. | ||
// Default should be 128MB |
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.
@victorj8 Apologies - i missed this yesterday, but can you remove the comment '// Default should be 128MB'. thanks
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.
All looks good besides that comment cleanup that i commented on which is not a show stopper and can be addressed afterwards.
Change Description
Changes to RocksDB parameter names:
rocksdb-threads
changed topersistent-storage-num-threads
rocksdb-files
changed topersistent-storage-max-num-files
rocksdb-write-buffer-size-mb
changed topersistent-storage-write-buffer-size-mb
New RocksDB parameter:
persistent-storage-bytes-per-sync
(used to control the write rate of flushes and compactions)Other
Change Type
Select ONE
Consensus Changes
API Changes
Documentation Additions
We need to change the documentation regarding the new parameter names and the addition of the new parameter.