-
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?
Conversation
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
This error can be ignored. I didn't change it. What about the others?
|
saintstack
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.
Thanks for doing this. For sure we are not double counting? These are not exposed already? If not, nice addition. They just show in JMX? Exposing them in UI would be a follow-on?
Thanks for doing this.
| if (mutation instanceof Put) { | ||
| HRegion.updateCellTimestamps(familyCellMaps[index].values(), byteTS); | ||
| miniBatchOp.incrementNumOfPuts(); | ||
| miniBatchOp.incrementBytesForPuts(mutation.heapSize()); |
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.
| public void updatePut(final long size) { | ||
| source.updatePut(); | ||
| source.updatePutBytes(size); | ||
| source.updateReceivedBytes(size); |
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.
What is the difference between put and received? They are not the same?
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.
Received contains all write operations such as increment/append/put/bulkload, putBytes consists of its own
|
💔 -1 overall
This message was automatically generated. |
2 similar comments
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
I think we need some metrics to measure the amount of traffic being read and written to each region, which can help us more clearly analyze how much network resources are consumed by each region.
putBytes/getBytes/scanBytes/deleteBytes/incrementBytes/appendBytes/bulkLoadBytes