-
Notifications
You must be signed in to change notification settings - Fork 65
starknet_patricia_storage: rocksDB stats #11876
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: nimrod/rocksDB-options
Are you sure you want to change the base?
Conversation
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
ArielElp
left a comment
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.
@ArielElp reviewed 1 file and all commit messages, and made 1 comment.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @nimrod-starkware).
4d21093 to
fcc8485
Compare
2880492 to
d175fff
Compare
dorimedini-starkware
left a comment
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.
@dorimedini-starkware reviewed 1 file and all commit messages, and made 3 comments.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @nimrod-starkware).
crates/starknet_patricia_storage/src/rocksdb_storage.rs line 83 at r2 (raw file):
// Enable statistics collection. opts.enable_statistics(); opts.set_statistics_level(StatsLevel::ExceptDetailedTimers);
it's ok that this is the default but in production we will need to control this - stat collection can slow things down, we need to be able to turn it off
Code quote:
// Enable statistics collection.
opts.enable_statistics();
opts.set_statistics_level(StatsLevel::ExceptDetailedTimers);crates/starknet_patricia_storage/src/rocksdb_storage.rs line 175 at r2 (raw file):
self.options .db_options .get_statistics()
what is the format of this...?
if it's a comma-separated value string, can you parse it?
Code quote:
.get_statistics()crates/starknet_patricia_storage/src/rocksdb_storage.rs line 176 at r2 (raw file):
.db_options .get_statistics() .expect("Statistics are unexpectedly disabled."),
return an Err here please - we don't want potential panic locations in production code, when all this does is collect stats
Code quote:
.expect("Statistics are unexpectedly disabled."),fcc8485 to
0ee721d
Compare
d175fff to
577fc70
Compare

No description provided.