-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-35788][SS] Metrics support for RocksDB instance #32934
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
Conversation
|
Kubernetes integration test starting |
|
Kubernetes integration test status success |
|
Test build #139878 has finished for PR 32934 at commit
|
|
retest this please |
viirya
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.
I don't find the different change than other related PRs. @xuanyuanking Which is different change here?
|
Sorry @viirya, my mistake. Just push the latest commit of the metrics support. |
|
Kubernetes integration test starting |
|
Kubernetes integration test status failure |
|
Kubernetes integration test unable to build dist. exiting with code: 1 |
|
Test build #140190 has finished for PR 32934 at commit
|
|
Test build #140195 has finished for PR 32934 at commit
|
db2a2b7 to
92e014e
Compare
|
Test build #140372 has finished for PR 32934 at commit
|
92e014e to
1dfe279
Compare
|
Test build #140447 has finished for PR 32934 at commit
|
|
Kubernetes integration test unable to build dist. exiting with code: 1 |
|
Test build #140451 has finished for PR 32934 at commit
|
|
Kubernetes integration test unable to build dist. exiting with code: 1 |
|
Shall we rebase this one for continue reviewing? |
|
Yea, just finished the rebasing. |
|
Test build #140571 has finished for PR 32934 at commit
|
|
Same rebasing issue happens here as well. Could we please do the "clean" rebase? Like below: |
|
Thanks for the guidance, let me try. |
|
Test build #140576 has finished for PR 32934 at commit
|
|
Kubernetes integration test unable to build dist. exiting with code: 1 |
|
Kubernetes integration test starting |
|
Kubernetes integration test status success |
|
Test build #140586 has finished for PR 32934 at commit
|
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.
Looks good overall. Only nits.
| * Metrics regarding RocksDB file sync between local and DFS. | ||
| */ | ||
| case class RocksDBFileManagerMetrics( | ||
| filesCopied: Long, |
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.
nit: indent
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.
Thanks, done in 355953e.
| */ | ||
| @volatile private var saveCheckpointMetrics = RocksDBFileManagerMetrics.EMPTY_METRICS | ||
|
|
||
| def latestloadCheckpointMetrics: RocksDBFileManagerMetrics = loadCheckpointMetrics |
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.
nit: latestLoadCheckpointMetrics
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.
Thanks, done in 355953e
|
|
||
| /** Class to represent stats from each commit. */ | ||
| case class RocksDBMetrics( | ||
| numCommittedKeys: Long, |
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.
nit: indent
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.
Thanks, done in 355953e
|
|
||
| /** Class to wrap RocksDB's native histogram */ | ||
| case class RocksDBNativeHistogram( | ||
| avg: Double, stddev: Double, median: Double, p95: Double, p99: Double) { |
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.
nit: indent
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.
Thanks, done in 355953e
|
Kubernetes integration test starting |
|
Kubernetes integration test status success |
|
Test build #140661 has finished for PR 32934 at commit
|
|
retest this please |
HeartSaVioR
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.
+1
I'll wait for @viirya to take a look; I'll merge this in a couple of days if there's no comment.
|
Kubernetes integration test starting |
|
I'm in vacation, but I will find some time looking at this. Thanks. |
|
Thanks for the update. Let's just merge this in and add up the reviews in the next PR then. It should be pretty much simpler as we will have only one PR for RocksDB state store after merging this. |
|
Thanks! Merging to master/3.2. |
|
Okay for me. Thanks! |
|
Kubernetes integration test status success |
### What changes were proposed in this pull request? Add more metrics for the RocksDB instance. We transform the native states from RocksDB. ### Why are the changes needed? Improve the usability with more metrics for RocksDB instance. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Existing tests. Closes #32934 from xuanyuanking/SPARK-35788. Authored-by: Yuanjian Li <[email protected]> Signed-off-by: Jungtaek Lim <[email protected]> (cherry picked from commit 9544277) Signed-off-by: Jungtaek Lim <[email protected]>
|
Thanks @xuanyuanking for the contribution! I merged this to master/branch-3.2. Please rebase the next PR. |
|
Test build #140672 has finished for PR 32934 at commit
|
What changes were proposed in this pull request?
Add more metrics for the RocksDB instance. We transform the native states from RocksDB.
Why are the changes needed?
Improve the usability with more metrics for RocksDB instance.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Existing tests.