-
Notifications
You must be signed in to change notification settings - Fork 312
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature:Online Query and Dynamic Modification of Table-level RocksDB …
…Options (#1488) #1488 Complete the dynamic setting function of num_levels and write_buffer_size option.I use rocksdb.write_buffer_size as a dynamically modifiable parameter and rocksdb.num_levels as a non-dynamically modifiable parameter to test my idea. 1. Providing online modification functionality for Pegasus table-level RocksDB configuration: 1. The common RocksDB options can still be configured through the `config.ini` file. 2. For the RocksDB options that support dynamic modification, they can be modified using the `create` or `set_app_envs` command. 3. For the RocksDB options that do not support dynamic modification, they can be modified using the `create` command. 2. Providing online query functionality for Pegasus table-level RocksDB configuration: 1. Following the design principle of app environment (`app env`), only the RocksDB options set through the `create` or `set_app_envs` command will be available for online querying. 2. The remaining RocksDB option information is located in the `[pegasus.server]` section of the `config.ini` file. - Unit test Unit test is add in meta_app_envs_test.update_app_envs_test - Manual test (add detailed scripts or steps below) Pegasus shell case: create lpf -e rocksdb.num_levels=12,rocksdb.write_buffer_size=100 create lpf -e rocksdb.num_levels=5,rocksdb.write_buffer_size=100 create lpf -e rocksdb.num_levels=5,rocksdb.write_buffer_size=33554432 set_app_envs rocksdb.write_buffer_size 67108864 set_app_envs rocksdb.write_buffer_size 100 get_app_envs
- Loading branch information
1 parent
2acae8f
commit 76a440b
Showing
5 changed files
with
14 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters