ruojieranyishen opened a new pull request, #1511: URL: https://github.com/apache/incubator-pegasus/pull/1511
### What problem does this PR solve? <!--add issue link with summary if exists--> Feature:Online Query and Dynamic Modification of Table-level RocksDB Options (#1488) https://github.com/apache/incubator-pegasus/issues/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. ### What is changed and how does it work? 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. ##### Tests <!-- At least one of them must be included. --> - 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.num_levels 4 get_app_envs -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
