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

Andrei Dulceanu commented on OAK-4561:
--------------------------------------

What kind of live measurement do we really want to have in {{oak-segment-tar}}? 
So far I see that the stuff we use from Apache Commons Math is  either advanced 
metrics like percentile and deviation or collecting metrics in a certain time 
window. See examples below for a clearer picture:
{code:java}
return "min=" + sci.format(statistics.getMin()) +
                ", 10%=" + sci.format(statistics.getPercentile(10.0)) +
                ", 50%=" + sci.format(statistics.getPercentile(50.0)) +
                ", 90%=" + sci.format(statistics.getPercentile(90.0)) +
                ", max=" + sci.format(statistics.getMax()) +
                ", mean=" + sci.format(statistics.getMean()) +
                ", stdev=" + sci.format(statistics.getStandardDeviation()) +
                ", N=" + sci.format(statistics.getN());
{code}

or 

{code:java}
new SynchronizedDescriptiveStatistics(NODE_WRITER_STATS_WINDOW)
{code}

If you think all these are valuable, I was thinking of adding a specialised 
class for this kind of statistics in {{oak-core}}.

[~frm], [~mduerig], [~alexparvulescu], could you provide your input on how to 
go forward, please?

> Avoid embedding Apache Commons Math in Segment Tar
> --------------------------------------------------
>
>                 Key: OAK-4561
>                 URL: https://issues.apache.org/jira/browse/OAK-4561
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: segment-tar
>            Reporter: Francesco Mari
>            Assignee: Andrei Dulceanu
>             Fix For: Segment Tar 0.0.22
>
>
> Apache Commons Math is a relatively large dependency. If possible, embedding 
> it should be avoided in order not to increase the size of the Segment Tar 
> considerably.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to