Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#10076]: docdb: [DST] Enhance rocksdb UI page with info about OPTIONS
Summary: Updated `TabletServerPathHandlers` to display RocksDB Regular/Intents options on tablet page within `Options` section. The content of the section is similar to RocksDB options file without comments header and file version. Collapsed view: {F20907} Expanded view when pointer is hovering section's title ('Options'): {F20908} Test Plan: Auto: ``` ybd --cxx-test rocksdb_options_test ybd --cxx-test rocksdb_options_util_test ybd --cxx-test rocksdb_column_family_test ybd --cxx-test rocksdb_db_test ybd --cxx-test rocksdb_compaction_job_stats_test ybd --cxx-test rocksdb_db_dynamic_level_test ybd --cxx-test rocksdb_fault_injection_test ``` Manual: 1.Run `yb-ctl` to start up a local cluster: ``` yb-ctl --rf=1 create ``` 2. Run `yb-sample-apps.jar` for some time to upload the data ``` java -jar yb-sample-apps.jar --workload CassandraTransactionalKeyValue --nodes 127.0.0.1:9042 ``` 3. Flush memtables to force SST files appear ``` yb-admin flush_table ybdemo_keyspace cassandratransactionalkeyvalue ``` 4. Open `http://127.0.0.1:9000/`, navigate to `Tablets`, open a tablet for `cassandratransactionalkeyvalue` table and then open `RocksDB` info 5. Expand `Options` section for Regular instance, make sure the content is similar to Regular instance options file, possible location: ``` ~/yugabyte-data/node-1/disk-1/yb-data/tserver/data/rocksdb/table-%uuid0%/tablet-%uuid1%/OPTIONS-000009 ``` 6. Expand `Options` section for Intents instance, make sure the content is similar to Intents instance options file, possible location: ``` ~/yugabyte-data/node-1/disk-1/yb-data/tserver/data/rocksdb/table-%uuid0%/tablet-%uuid1%.intents/OPTIONS-000009 ``` 7. Collapse/Expand `Options` for Regular/Intents sections to make sure expanding/collapsing works fine 8. Remember the value of `max_background_flushes` option both for Regular and Intents instances: `max_background_flushes=3` 9. Update the option by restarting the local cluster: ``` yb-ctl stop yb-ctl start --tserver_flags rocksdb_max_background_flushes=1 ``` 10. Open `127.0.0.1:9000`, navigate to `Tablets`, open a tablet for `cassandratransactionalkeyvalue` table and then open `RocksDB` info 11. Expand `Options` and make sure the option has been changed: `max_background_flushes=1` 12. Make sure `Options` content for both Regular/Intents instances are similar to corresponding options files Reviewers: sergei, bogdan, timur Reviewed By: timur Subscribers: mbautin, ybase Differential Revision: https://phabricator.dev.yugabyte.com/D14221
- Loading branch information
1 parent
92add37
commit ae47cc0
Showing
11 changed files
with
277 additions
and
30 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
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
Oops, something went wrong.