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

Ted Malaska edited comment on FLUME-1411 at 9/14/12 4:32 AM:
-------------------------------------------------------------

This is not a completely finished patch but an example of a possible solution.  
If you like the solution I'll finish the patch.

This solution supports two types of averages:
1. Averages since start
2. Rolling Averages (The rolling interval can be set through config properties)

I added two gets for these averages in sinkCounter.

I also added a junit that tests both of these averages and shows how quickly 
they deviate.

Please let me know what you think.
                
      was (Author: ted.m):
    This is completely finished patch but an example of a possible solution.  
If you like the solution I'll finish the patch.

This solution supports two types of averages:
1. Averages since start
2. Rolling Averages (The rolling interval can be set through config properties)

I added two gets for these averages in sinkCounter.

I also added a junit that tests both of these averages and shows how quickly 
they deviate.

Please let me know what you think.
                  
> Add average events per second params to MBeans
> ----------------------------------------------
>
>                 Key: FLUME-1411
>                 URL: https://issues.apache.org/jira/browse/FLUME-1411
>             Project: Flume
>          Issue Type: Bug
>          Components: Sinks+Sources
>    Affects Versions: v1.2.0
>            Reporter: Hari Shreedharan
>            Assignee: Ted Malaska
>             Fix For: v1.3.0
>
>         Attachments: FLUME-1411-IDEA.patch
>
>
> I know this might cause the platform mbean thread longer to poll, since we 
> will need to do some calculation - but it is definitely nice to have historic 
> averages. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to