[ https://issues.apache.org/jira/browse/YARN-10208?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17068603#comment-17068603 ]
Bibin Chundatt commented on YARN-10208: --------------------------------------- [~lapjarn] Minor comment. {code} 1834 // Add metrics for evaluating the time difference between heartbeats. 1835 SchedulerNode node = 1836 nodeTracker.getNode(nodeUpdatedEvent.getRMNode().getNodeID()); 1837 if (node != null) { 1838 long lastInterval = 1839 Time.monotonicNow() - node.getLastHeartbeatMonotonicTime(); 1840 CapacitySchedulerMetrics.getMetrics() 1841 .addSchedulerHeartBeatIntervalAverage(lastInterval); 1842 } {code} Refactor to method and update before the node update call > Add metric in CapacityScheduler for evaluating the time difference between > node heartbeats > ------------------------------------------------------------------------------------------ > > Key: YARN-10208 > URL: https://issues.apache.org/jira/browse/YARN-10208 > Project: Hadoop YARN > Issue Type: Improvement > Reporter: Pranjal Protim Borah > Assignee: Pranjal Protim Borah > Priority: Minor > Attachments: YARN-10208.001.patch, YARN-10208.002.patch > > > Metric measuring average time interval between node heartbeats in capacity > scheduler on node update event. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org