You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@accumulo.apache.org by Brandon Wilson <br...@gmail.com> on 2013/03/01 15:26:22 UTC

Computations behind JMX Metrics

I have a question regarding the JMX metrics exposed by Accumulo. I believe
the metrics that are reported as averages (e.g., ScanAvgTime) are computed
as weighted averages over all time, as opposed to a arithmetic mean of a
set of scan times over a given time window.  Am I correct that the weighted
average calculation is actual the weighted average since the tserver
started?

The average formula I suspect is being use is here:
http://grepcode.com/file/repo1.maven.org/maven2/org.apache.accumulo/accumulo-server/1.4.0/org/apache/accumulo/server/metrics/AbstractMetricsImpl.java#AbstractMetricsImpl.Metric.addAvg%28long%29<https://myremote.mitre.org/owa/,DanaInfo=imc.mitre.org,SSL+redir.aspx?C=c6-KKQhSR0qXLqfNtF0WFWOUgfkZ6s8ILg3UmiJgkZ-j_nin7It-AddWEsRTPiKlFa7QDfn4H8s.&URL=http%3a%2f%2fgrepcode.com%2ffile%2frepo1.maven.org%2fmaven2%2forg.apache.accumulo%2faccumulo-server%2f1.4.0%2forg%2fapache%2faccumulo%2fserver%2fmetrics%2fAbstractMetricsImpl.java%23AbstractMetricsImpl.Metric.addAvg%2528long%2529>

Am I on the right track here?

-Brandon

Re: Computations behind JMX Metrics

Posted by Eric Newton <er...@gmail.com>.
Yes, the average metrics obtained via JMX are exponentially smoothed.

You can get more accurate counters via a thrift call to the master, and you
can trace specific calls to get fine-grained time information for all parts
of a specific transaction.

-Eric


On Fri, Mar 1, 2013 at 9:26 AM, Brandon Wilson <brandon.wilson.umd@gmail.com
> wrote:

> I have a question regarding the JMX metrics exposed by Accumulo. I believe
> the metrics that are reported as averages (e.g., ScanAvgTime) are computed
> as weighted averages over all time, as opposed to a arithmetic mean of a
> set of scan times over a given time window.  Am I correct that the weighted
> average calculation is actual the weighted average since the tserver
> started?
>
> The average formula I suspect is being use is here:
> http://grepcode.com/file/repo1.maven.org/maven2/org.apache.accumulo/accumulo-server/1.4.0/org/apache/accumulo/server/metrics/AbstractMetricsImpl.java#AbstractMetricsImpl.Metric.addAvg%28long%29<https://myremote.mitre.org/owa/,DanaInfo=imc.mitre.org,SSL+redir.aspx?C=c6-KKQhSR0qXLqfNtF0WFWOUgfkZ6s8ILg3UmiJgkZ-j_nin7It-AddWEsRTPiKlFa7QDfn4H8s.&URL=http%3a%2f%2fgrepcode.com%2ffile%2frepo1.maven.org%2fmaven2%2forg.apache.accumulo%2faccumulo-server%2f1.4.0%2forg%2fapache%2faccumulo%2fserver%2fmetrics%2fAbstractMetricsImpl.java%23AbstractMetricsImpl.Metric.addAvg%2528long%2529>
>
> Am I on the right track here?
>
> -Brandon
>