[
https://issues.apache.org/jira/browse/HBASE-4348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13223891#comment-13223891
]
Himanshu Vashishtha commented on HBASE-4348:
--------------------------------------------
I have come up with the following approach: (and have attached an initial patch
too)
a) Having an "active" HMaster also emit out metrics at a fixed intervals (in
align with a Region Server).
b) Defining new metrics in MasterMetrics class, and updating them in the
AssignmentManager class. This avoids calling the getRegionsInTransition method
on the AM class (it creates a copy of the map). This entails adding one more
parameter in the AM constructor. I changed the current constructor instead of
adding one more as it was only created in the HMaster class. I needed to add
null as the param in the TestAssignmentManager class (its test are passing).
Please let me know if this approach sounds good. Once this is done, I will work
on the UI to make it more colorful as suggested by Stack.
> Add metrics for regions in transition
> -------------------------------------
>
> Key: HBASE-4348
> URL: https://issues.apache.org/jira/browse/HBASE-4348
> Project: HBase
> Issue Type: Improvement
> Components: metrics
> Affects Versions: 0.92.0
> Reporter: Todd Lipcon
> Assignee: Himanshu Vashishtha
> Priority: Minor
> Labels: noob
> Attachments: 4348-v1.patch, 4348-v2.patch, RITs.png, metrics-v2.patch
>
>
> The following metrics would be useful for monitoring the master:
> - the number of regions in transition
> - the number of regions in transition that have been in transition for more
> than a minute
> - how many seconds has the oldest region-in-transition been in transition
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira