-
Notifications
You must be signed in to change notification settings - Fork 3.4k
HBASE-23708 Support metrics for region traffic #1069
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: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -44,31 +44,48 @@ public void close() { | |
| source.close(); | ||
| } | ||
|
|
||
| public void updatePut() { | ||
| public void updatePut(final long size) { | ||
| source.updatePut(); | ||
| source.updatePutBytes(size); | ||
| source.updateReceivedBytes(size); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is the difference between put and received? They are not the same?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Received contains all write operations such as increment/append/put/bulkload, putBytes consists of its own |
||
| } | ||
|
|
||
| public void updateDelete() { | ||
| public void updateDelete(final long size) { | ||
| source.updateDelete(); | ||
| source.updateDeleteBytes(size); | ||
| source.updateReceivedBytes(size); | ||
| } | ||
|
|
||
| public void updateGet(final long t) { | ||
| public void updateGet(final long t, final long size) { | ||
| source.updateGet(t); | ||
| source.updateGetBytes(size); | ||
| source.updateSentBytes(size); | ||
| } | ||
|
|
||
| public void updateScanTime(final long t) { | ||
| public void updateScan(final long t, final long size) { | ||
| source.updateScanTime(t); | ||
| source.updateScanBytes(size); | ||
| source.updateSentBytes(size); | ||
| } | ||
|
|
||
| public void updateFilteredRecords(){ | ||
| userAggregate.updateFilteredReadRequests(); | ||
| } | ||
| public void updateAppend() { | ||
| public void updateAppend(final long size) { | ||
| source.updateAppend(); | ||
| source.updateAppendBytes(size); | ||
| source.updateReceivedBytes(size); | ||
| } | ||
|
|
||
| public void updateIncrement() { | ||
| public void updateIncrement(final long size) { | ||
| source.updateIncrement(); | ||
| source.updateIncrementBytes(size); | ||
| source.updateReceivedBytes(size); | ||
| } | ||
|
|
||
| public void updateBulkLoad(final long size) { | ||
| source.updateBulkLoadBytes(size); | ||
| source.updateReceivedBytes(size); | ||
| } | ||
|
|
||
| MetricsRegionSource getSource() { | ||
|
|
||
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.
Do we traverse any synchronize blocks here or update any volatiles? In other words, wondering what the cost of these updates are.
We are also bulking up metrics w/ these added numbers... the metrics we send the master on each report (every second or so).
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.
We spend a lot of cpu counting currently. This adds to the counting load.
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.
@saintstack Thanks for review
At present, we only have aggregate information and cannot know how much network resources are used in each region.