public interface TaskRuntimeEstimator
| Modifier and Type | Method and Description |
|---|---|
long |
attemptEnrolledTime(TezTaskAttemptID attemptID) |
void |
contextualize(org.apache.hadoop.conf.Configuration conf,
Vertex vertex) |
void |
enrollAttempt(TezTaskAttemptID id,
long timestamp) |
long |
estimatedRuntime(TezTaskAttemptID id)
Estimate a task attempt's total runtime.
|
default boolean |
hasStagnatedProgress(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(TezTaskAttemptID id)
Computes the width of the error band of our estimate of the task
runtime as returned by
estimatedRuntime(TezTaskAttemptID) |
long |
thresholdRuntime(TezTaskID id)
Find a maximum reasonable execution wallclock time.
|
void |
updateAttempt(TezTaskAttemptID taId,
TaskAttemptState reportedState,
long timestamp) |
void enrollAttempt(TezTaskAttemptID id, long timestamp)
long attemptEnrolledTime(TezTaskAttemptID attemptID)
void updateAttempt(TezTaskAttemptID taId, TaskAttemptState reportedState, long timestamp)
void contextualize(org.apache.hadoop.conf.Configuration conf,
Vertex vertex)
long thresholdRuntime(TezTaskID id)
id - the TezTaskID of the task we are asking aboutlong estimatedRuntime(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(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(TezTaskAttemptID id, long timeStamp)
id - the TezTaskAttemptID of the attempt we are asking abouttimeStamp - the time of the report we compare withCopyright © 2022 Apache Software Foundation. All rights reserved.