public class LegacyTaskRuntimeEstimator extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Set<Task> |
doneTasks |
protected Map<org.apache.tez.dag.records.TezTaskAttemptID,Long> |
startTimes |
protected DataStatistics |
taskStatistics |
protected Vertex |
vertex |
| Constructor and Description |
|---|
LegacyTaskRuntimeEstimator() |
| Modifier and Type | Method and Description |
|---|---|
long |
attemptEnrolledTime(org.apache.tez.dag.records.TezTaskAttemptID attemptID) |
void |
contextualize(org.apache.hadoop.conf.Configuration conf,
Vertex vertex) |
protected DataStatistics |
dataStatisticsForTask(org.apache.tez.dag.records.TezTaskID taskID) |
void |
enrollAttempt(org.apache.tez.dag.records.TezTaskAttemptID id,
long timestamp) |
long |
estimatedRuntime(org.apache.tez.dag.records.TezTaskAttemptID attemptID)
Estimate a task attempt's total runtime.
|
long |
newAttemptEstimatedRuntime()
Estimates how long a new attempt on this task will take if we start
one now
|
long |
runtimeEstimateVariance(org.apache.tez.dag.records.TezTaskAttemptID attemptID)
Computes the width of the error band of our estimate of the task
runtime as returned by
TaskRuntimeEstimator.estimatedRuntime(TezTaskAttemptID) |
long |
thresholdRuntime(org.apache.tez.dag.records.TezTaskID taskID)
Find a maximum reasonable execution wallclock time.
|
void |
updateAttempt(org.apache.tez.dag.records.TezTaskAttemptID attemptID,
TaskAttemptState state,
long timestamp) |
protected Vertex vertex
protected final DataStatistics taskStatistics
public void updateAttempt(org.apache.tez.dag.records.TezTaskAttemptID attemptID,
TaskAttemptState state,
long timestamp)
updateAttempt in interface TaskRuntimeEstimatorpublic long estimatedRuntime(org.apache.tez.dag.records.TezTaskAttemptID attemptID)
TaskRuntimeEstimatorattemptID - the TezTaskAttemptID of the attempt we are asking about-1 if
we don't have enough information yet to produce an estimate.public long runtimeEstimateVariance(org.apache.tez.dag.records.TezTaskAttemptID attemptID)
TaskRuntimeEstimatorTaskRuntimeEstimator.estimatedRuntime(TezTaskAttemptID)attemptID - the TezTaskAttemptID of the attempt we are asking about-1 if
we don't have enough information yet to produce an estimate.public void enrollAttempt(org.apache.tez.dag.records.TezTaskAttemptID id,
long timestamp)
enrollAttempt in interface TaskRuntimeEstimatorpublic long attemptEnrolledTime(org.apache.tez.dag.records.TezTaskAttemptID attemptID)
attemptEnrolledTime in interface TaskRuntimeEstimatorpublic void contextualize(org.apache.hadoop.conf.Configuration conf,
Vertex vertex)
contextualize in interface TaskRuntimeEstimatorprotected DataStatistics dataStatisticsForTask(org.apache.tez.dag.records.TezTaskID taskID)
public long thresholdRuntime(org.apache.tez.dag.records.TezTaskID taskID)
TaskRuntimeEstimatorthresholdRuntime in interface TaskRuntimeEstimatortaskID - the TezTaskID of the task we are asking aboutpublic long newAttemptEstimatedRuntime()
TaskRuntimeEstimatornewAttemptEstimatedRuntime in interface TaskRuntimeEstimator-1 if
we don't have enough information yet to produce an estimate.Copyright © 2015 Apache Software Foundation. All rights reserved.