-
Notifications
You must be signed in to change notification settings - Fork 130
Conversation
* Measure read/get, write/put, remove, and commit latencies * Measure rollback count (latency seemed a bit much)
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.
LGTM with just the couple of nits.
MetricCategory.ROCKSDB, "write_latency_seconds", "Latency for write to RocksDB."); | ||
commitLatency = | ||
metricsSystem.createTimer( | ||
MetricCategory.ROCKSDB, "commit_latency_seconds", "Latency for write to RocksDB."); |
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.
Description is incorrect, should be "for commit" not "for write"
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.
Done
|
||
rollbackCount = | ||
metricsSystem.createCounter( | ||
MetricCategory.ROCKSDB, "rollback_count", "Number of transactions rolled back."); |
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.
Can we make the description "Number of RocksDB transactions rolled back."? I know it will have rocksdb in the key as well but it would be easy to confuse this with number of EVM transactions rolled back.
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.
Done
PR description