[ 
https://issues.apache.org/jira/browse/HADOOP-10161?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13852792#comment-13852792
 ] 

Yang He commented on HADOOP-10161:
----------------------------------

stack, thanks for your advice
1. I  add the two files(hadoop-metrics.properties,hadoop-metrics2.properties) 
in order to show users how to configure dmax in metrics1 and metrics2,now i add 
to patch.
2. I have solved the unorthondox formmatting.
3. "xdr_int" is protected method, meanwhile I can not find other method using 
as the bytes to int. Do you have any suggestion?
4. In ganglia31, hadoop emits two messages(metadata and value string) for one 
metric, the value of dmax is only written into the metadata, so I need 133 
against the value string.
5. no, metrics2 context also contains tmax. 
6. the slope attribute in ganglia metrics is meant to indicate the slope for 
the lifetime of the metric.(the value of it can be zero, positive, negative, 
both)
7. "units", Unit of measure for the value e.g. Kilobytes

> Add a method to change the default value of dmax in hadoop.properties
> ---------------------------------------------------------------------
>
>                 Key: HADOOP-10161
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10161
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: metrics
>    Affects Versions: 2.2.0
>            Reporter: Yang He
>         Attachments: 2013-12-19_171616.png, HADOOP-10161_0_20131211.patch, 
> HADOOP-10161_1_20131217.patch, HADOOP-10161_2_20131219.patch, 
> HADOOP-10161_DESCRIPTION, HADOOP_10161_EVIDENCE
>
>
> The property of dmax in ganglia is a configurable time to rotate metrics. 
> Therefore, no more value of the metric will be emit to the gmond, after 
> 'dmax' seconds, then gmond will destroy the metric in memory. In Hadoop 
> metrics framework, the default value of 'dmax' is 0. It means the gmond will 
> never destroy the metric although the metric is disappeared. The gmetad 
> daemon also does not delete the rrdtool file forever. 
> We need to add a method to configure the default value of dmax for all 
> metrics in hadoop.properties.



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Reply via email to