[
https://issues.apache.org/jira/browse/HDFS-11907?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Arpit Agarwal updated HDFS-11907:
---------------------------------
Description: Add a metric to measure the time taken by the NameNode
Resource Check. (was: Currently, {{HealthMonitor#doHealthChecks}} invokes
{{NameNode#monitorHealth}} which ends up invoking
{{NameNodeResourceChecker#isResourceAvailable}}, at the frequency of once per
second by default. And NameNodeResourceChecker#isResourceAvailable invokes
{{df.getAvailable();}} every time it is called.
Since available space information should rarely be changing dramatically at the
pace of per second. A cached value should be sufficient. i.e. only try to get
the updated value when the cached value is too old. otherwise simply return the
cached value. This way df.getAvailable() gets invoked less.
Thanks [~arpitagarwal] for the offline discussion.)
> Add metric for time taken by NameNode resource check
> ----------------------------------------------------
>
> Key: HDFS-11907
> URL: https://issues.apache.org/jira/browse/HDFS-11907
> Project: Hadoop HDFS
> Issue Type: Improvement
> Reporter: Chen Liang
> Assignee: Chen Liang
> Attachments: HDFS-11907.001.patch, HDFS-11907.002.patch,
> HDFS-11907.003.patch, HDFS-11907.004.patch, HDFS-11907.005.patch,
> HDFS-11907.006.patch
>
>
> Add a metric to measure the time taken by the NameNode Resource Check.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]