Class NullTaskRuntimesEngine
java.lang.Object
org.apache.hadoop.mapreduce.v2.app.speculate.NullTaskRuntimesEngine
- All Implemented Interfaces:
TaskRuntimeEstimator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongattemptEnrolledTime(org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId attemptID) voidcontextualize(org.apache.hadoop.conf.Configuration conf, AppContext context) voidenrollAttempt(TaskAttemptStatusUpdateEvent.TaskAttemptStatus status, long timestamp) longestimatedNewAttemptRuntime(org.apache.hadoop.mapreduce.v2.api.records.TaskId id) Estimates how long a new attempt on this task will take if we start one nowlongestimatedRuntime(org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId id) Estimate a task attempt's total runtime.longruntimeEstimateVariance(org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId id) Computes the width of the error band of our estimate of the task runtime as returned byTaskRuntimeEstimator.estimatedRuntime(TaskAttemptId)longthresholdRuntime(org.apache.hadoop.mapreduce.v2.api.records.TaskId id) Find a maximum reasonable execution wallclock time.voidupdateAttempt(TaskAttemptStatusUpdateEvent.TaskAttemptStatus status, long timestamp) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.mapreduce.v2.app.speculate.TaskRuntimeEstimator
hasStagnatedProgress
-
Constructor Details
-
NullTaskRuntimesEngine
public NullTaskRuntimesEngine()
-
-
Method Details
-
enrollAttempt
- Specified by:
enrollAttemptin interfaceTaskRuntimeEstimator
-
attemptEnrolledTime
public long attemptEnrolledTime(org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId attemptID) - Specified by:
attemptEnrolledTimein interfaceTaskRuntimeEstimator
-
updateAttempt
- Specified by:
updateAttemptin interfaceTaskRuntimeEstimator
-
contextualize
- Specified by:
contextualizein interfaceTaskRuntimeEstimator
-
thresholdRuntime
public long thresholdRuntime(org.apache.hadoop.mapreduce.v2.api.records.TaskId id) Description copied from interface:TaskRuntimeEstimatorFind a maximum reasonable execution wallclock time. Includes the time already elapsed. Find a maximum reasonable execution time. Includes the time already elapsed. If the projected total execution time for this task ever exceeds its reasonable execution time, we may speculate it.- Specified by:
thresholdRuntimein interfaceTaskRuntimeEstimator- Parameters:
id- theTaskIdof the task we are asking about- Returns:
- the task's maximum reasonable runtime, or MAX_VALUE if we don't have enough information to rule out any runtime, however long.
-
estimatedRuntime
public long estimatedRuntime(org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId id) Description copied from interface:TaskRuntimeEstimatorEstimate a task attempt's total runtime. Includes the time already elapsed.- Specified by:
estimatedRuntimein interfaceTaskRuntimeEstimator- Parameters:
id- theTaskAttemptIdof the attempt we are asking about- Returns:
- our best estimate of the attempt's runtime, or
-1if we don't have enough information yet to produce an estimate.
-
estimatedNewAttemptRuntime
public long estimatedNewAttemptRuntime(org.apache.hadoop.mapreduce.v2.api.records.TaskId id) Description copied from interface:TaskRuntimeEstimatorEstimates how long a new attempt on this task will take if we start one now- Specified by:
estimatedNewAttemptRuntimein interfaceTaskRuntimeEstimator- Parameters:
id- theTaskIdof the task we are asking about- Returns:
- our best estimate of a new attempt's runtime, or
-1if we don't have enough information yet to produce an estimate.
-
runtimeEstimateVariance
public long runtimeEstimateVariance(org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId id) Description copied from interface:TaskRuntimeEstimatorComputes the width of the error band of our estimate of the task runtime as returned byTaskRuntimeEstimator.estimatedRuntime(TaskAttemptId)- Specified by:
runtimeEstimateVariancein interfaceTaskRuntimeEstimator- Parameters:
id- theTaskAttemptIdof the attempt we are asking about- Returns:
- our best estimate of the attempt's runtime, or
-1if we don't have enough information yet to produce an estimate.
-