Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

RocksDB Metrics #531

Merged
merged 4 commits into from
Jan 9, 2019
Merged

RocksDB Metrics #531

merged 4 commits into from
Jan 9, 2019

Conversation

shemnon
Copy link
Contributor

@shemnon shemnon commented Jan 8, 2019

PR description

  • Measure read/get, write/put, remove, and commit latencies
  • Measure rollback count (latency seemed a bit much)

* Measure read/get, write/put, remove, and commit latencies
* Measure rollback count (latency seemed a bit much)
Copy link
Contributor

@ajsutton ajsutton left a 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.");
Copy link
Contributor

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"

Copy link
Contributor Author

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.");
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@shemnon shemnon merged commit eab9084 into PegaSysEng:master Jan 9, 2019
@shemnon shemnon deleted the metrics branch January 9, 2019 16:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants