[ https://issues.apache.org/jira/browse/AURORA-1827?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15691040#comment-15691040 ]
Zameer Manji commented on AURORA-1827: -------------------------------------- I upgraded us to Guava 20. It has a [Quantiles|http://google.github.io/guava/releases/20.0/api/docs/com/google/common/math/Quantiles.html] class and a [Stats|http://google.github.io/guava/releases/20.0/api/docs/com/google/common/math/Stats.html] class that could be very helpful here. > Fix SLA percentile calculation > ------------------------------- > > Key: AURORA-1827 > URL: https://issues.apache.org/jira/browse/AURORA-1827 > Project: Aurora > Issue Type: Story > Reporter: Reza Motamedi > Priority: Trivial > Labels: newbie, sla > > The calculation of mttX (median-time-to-X) depends on the computation of > percentile values. The current implementation does not behave nicely with a > small sample size. For instance, for a given sample set of {50, 150}, > 50-percentile is reported to be 50. Although, 100 seems a more appropriate > return value. > One solution is to modify `SlaUtil` to perform an extrapolation when the > sample size is small or when the corresponding index to a percentile value is > not an integer. -- This message was sent by Atlassian JIRA (v6.3.4#6332)