Details
-
Improvement
-
Status: Patch Available
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
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.