public interface TaskRuntimeEstimator
| 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) |
void |
enrollAttempt(org.apache.tez.dag.records.TezTaskAttemptID id,
long timestamp) |
long |
estimatedRuntime(org.apache.tez.dag.records.TezTaskAttemptID id)
Estimate a task attempt's total runtime.
|
default boolean |
hasStagnatedProgress(org.apache.tez.dag.records.TezTaskAttemptID id,
long timeStamp)
Returns true if the estimator has no updates records for a threshold time
window.
|
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 id)
Computes the width of the error band of our estimate of the task
runtime as returned by
estimatedRuntime(TezTaskAttemptID) |
long |
thresholdRuntime(org.apache.tez.dag.records.TezTaskID id)
Find a maximum reasonable execution wallclock time.
|
void |
updateAttempt(org.apache.tez.dag.records.TezTaskAttemptID taId,
TaskAttemptState reportedState,
long timestamp) |
void enrollAttempt(org.apache.tez.dag.records.TezTaskAttemptID id,
long timestamp)
long attemptEnrolledTime(org.apache.tez.dag.records.TezTaskAttemptID attemptID)
void updateAttempt(org.apache.tez.dag.records.TezTaskAttemptID taId,
TaskAttemptState reportedState,
long timestamp)
void contextualize(org.apache.hadoop.conf.Configuration conf,
Vertex vertex)
long thresholdRuntime(org.apache.tez.dag.records.TezTaskID id)
id - the TezTaskID of the task we are asking aboutlong estimatedRuntime(org.apache.tez.dag.records.TezTaskAttemptID id)
id - the TezTaskAttemptID of the attempt we are asking about-1 if
we don't have enough information yet to produce an estimate.long newAttemptEstimatedRuntime()
-1 if
we don't have enough information yet to produce an estimate.long runtimeEstimateVariance(org.apache.tez.dag.records.TezTaskAttemptID id)
estimatedRuntime(TezTaskAttemptID)id - the TezTaskAttemptID of the attempt we are asking about-1 if
we don't have enough information yet to produce an estimate.default boolean hasStagnatedProgress(org.apache.tez.dag.records.TezTaskAttemptID id,
long timeStamp)
id - the TezTaskAttemptID of the attempt we are asking abouttimeStamp - the time of the report we compare withCopyright © 2020 Apache Software Foundation. All rights reserved.