[ 
https://issues.apache.org/jira/browse/YARN-6460?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Julien Vaudour updated YARN-6460:
---------------------------------
    Description: 
Be able to accelerate time in SLS.To do that, a {{timescalefactor}} parameter 
is introduced (default value = 1)
With if we use a time factor of X, time in simulation will be X times faster 
than real. Time in generated CSV will be modified a well to have the same 
result as if we don't use {{timescalefactor}}.

For example, it permits to run a simulation of one week of jobs in just one day 
if we use {{timescalefactor=7}}

To do that a ScaleClock object has been introduced, which implements 
{{org.apache.hadoop.yarn.util.Clock}}. It also extends 
{{com.codahale.metrics.Clock}} for metrics reported in csv.
All objects used for the simulation now use a shared reference to a 
{{org.apache.hadoop.yarn.util.Clock}} instance to get current time instead of 
using {{System.currentTimeMillis()}}

A new optionnal parameter {{--timescalefactor=<factor>}} has been introduced on 
{{slsrun.sh}} script.

  was:Be able to accelerate time in sls


> Accelerated time in SLS
> -----------------------
>
>                 Key: YARN-6460
>                 URL: https://issues.apache.org/jira/browse/YARN-6460
>             Project: Hadoop YARN
>          Issue Type: Improvement
>          Components: scheduler-load-simulator
>            Reporter: Julien Vaudour
>            Assignee: Julien Vaudour
>            Priority: Minor
>         Attachments: YARN-6460.000.patch, YARN-6460.001.patch, 
> YARN-6460-branch-2.000.patch, YARN-6460-branch-2.001.patch
>
>
> Be able to accelerate time in SLS.To do that, a {{timescalefactor}} parameter 
> is introduced (default value = 1)
> With if we use a time factor of X, time in simulation will be X times faster 
> than real. Time in generated CSV will be modified a well to have the same 
> result as if we don't use {{timescalefactor}}.
> For example, it permits to run a simulation of one week of jobs in just one 
> day if we use {{timescalefactor=7}}
> To do that a ScaleClock object has been introduced, which implements 
> {{org.apache.hadoop.yarn.util.Clock}}. It also extends 
> {{com.codahale.metrics.Clock}} for metrics reported in csv.
> All objects used for the simulation now use a shared reference to a 
> {{org.apache.hadoop.yarn.util.Clock}} instance to get current time instead of 
> using {{System.currentTimeMillis()}}
> A new optionnal parameter {{--timescalefactor=<factor>}} has been introduced 
> on {{slsrun.sh}} script.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org

Reply via email to