(LedgerStore) Include storage type as a tag in RocksDB metric reporting (#23523)
#### Summary of Changes This PR further enables group by operation on storage type in blockstore_rocksdb_cfs metrics. Such group-by allows us to further compare the performance metrics between rocks-level and rocks-fifo. To make things extensible, this PR introduces BlockstoreAdvancedOptions and move shred_storage_type. All fields in BlockstoreAdvancedOptions will support group-by operation in blockstore_rocksdb_cfs. Dependency: #23580
This commit is contained in:
committed by
GitHub
parent
b1da7cff66
commit
1e20bd8f9a
@ -13,7 +13,8 @@ use {
|
||||
socketaddr,
|
||||
},
|
||||
solana_ledger::{
|
||||
blockstore::create_new_ledger, blockstore_db::ShredStorageType, create_new_tmp_ledger,
|
||||
blockstore::create_new_ledger, blockstore_db::BlockstoreAdvancedOptions,
|
||||
create_new_tmp_ledger,
|
||||
},
|
||||
solana_net_utils::PortRange,
|
||||
solana_rpc::{rpc::JsonRpcConfig, rpc_pubsub_service::PubSubConfig},
|
||||
@ -582,7 +583,7 @@ impl TestValidator {
|
||||
.max_genesis_archive_unpacked_size
|
||||
.unwrap_or(MAX_GENESIS_ARCHIVE_UNPACKED_SIZE),
|
||||
solana_ledger::blockstore_db::AccessType::PrimaryOnly,
|
||||
ShredStorageType::default(),
|
||||
BlockstoreAdvancedOptions::default(),
|
||||
)
|
||||
.map_err(|err| {
|
||||
format!(
|
||||
|
Reference in New Issue
Block a user