aurora-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maxim Khutornenko" <ma...@apache.org>
Subject Re: Review Request 35498: Compute SLA stats for non-prod jobs
Date Wed, 17 Jun 2015 18:40:14 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/35498/#review88261
-----------------------------------------------------------



src/main/java/org/apache/aurora/scheduler/sla/SlaAlgorithm.java (lines 73 - 87)
<https://reviews.apache.org/r/35498/#comment140683>

    This suggests the current AlgorithmType model is not very flexible. How would you feel
about moving the environment part from the AlgorithmType into MetricCalculator? That will
allow keeping AlgorithmType env-agnostic and will make adding new env-based metrics much easier.
    
    The AlgorithmType would only have vanilla metric names (e.g. "mtta_ms", "99.00" and etc.).
The MetricCalculator would then pass "nonprod" into `runAlgorithms()` to get appended to the
metric name (e.g. `sla_<job_key>_mtta_ms_nonprod`). This will change the existing nonprod
metric names a bit but will let us add new metrics for various task subsets without ever touching
the SlaAlgorithm.


- Maxim Khutornenko


On June 16, 2015, 9:07 a.m., Stephan Erb wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/35498/
> -----------------------------------------------------------
> 
> (Updated June 16, 2015, 9:07 a.m.)
> 
> 
> Review request for Aurora, Kevin Sweeney and Maxim Khutornenko.
> 
> 
> Bugs: AURORA-1350
>     https://issues.apache.org/jira/browse/AURORA-1350
> 
> 
> Repository: aurora
> 
> 
> Description
> -------
> 
> Compute SLA stats for non-prod jobs
> 
> This is a first iteration closely following the design proposal of Maxim as posted on
the mailinglist. Feedback welcome.
> 
> 
> Diffs
> -----
> 
>   src/main/java/org/apache/aurora/scheduler/sla/MetricCalculator.java 82f36d5ca15df18bdc8ebbbd868d3394db38e603

>   src/main/java/org/apache/aurora/scheduler/sla/SlaAlgorithm.java ff73ca6265bd0699791da5e5b6ed4aab9156d9e4

>   src/main/java/org/apache/aurora/scheduler/sla/SlaModule.java 64e986fb2e0f955dd4a9c7824eac9494728bf24e

>   src/test/java/org/apache/aurora/scheduler/sla/MetricCalculatorTest.java cb98834e925793fc116814371548a30470830164

>   src/test/java/org/apache/aurora/scheduler/sla/SlaModuleTest.java 5ee123a03e3c8670e0c03b05c48a9f4c66f6af9d

> 
> Diff: https://reviews.apache.org/r/35498/diff/
> 
> 
> Testing
> -------
> 
> `./gradlew -Pq build` and a manual verification in Vagrant.
> 
> 
> Thanks,
> 
> Stephan Erb
> 
>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message