public class LegacySpeculator
extends org.apache.hadoop.service.AbstractService
| Constructor and Description |
|---|
LegacySpeculator(org.apache.hadoop.conf.Configuration conf,
AppContext context,
Vertex vertex) |
LegacySpeculator(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.yarn.util.Clock clock,
Vertex vertex) |
LegacySpeculator(org.apache.hadoop.conf.Configuration conf,
TaskRuntimeEstimator estimator,
org.apache.hadoop.yarn.util.Clock clock,
Vertex vertex) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addSpeculativeAttempt(org.apache.tez.dag.records.TezTaskID taskID) |
Runnable |
createThread() |
int |
getMinimumAllowedSpeculativeTasks() |
double |
getProportionRunningTasksSpeculatable() |
double |
getProportionTotalTasksSpeculatable() |
long |
getSoonestRetryAfterNoSpeculate() |
long |
getSoonestRetryAfterSpeculate() |
void |
handle(SpeculatorEvent event) |
boolean |
isStarted() |
void |
notifyAttemptStarted(org.apache.tez.dag.records.TezTaskAttemptID taId,
long timestamp) |
void |
notifyAttemptStatusUpdate(org.apache.tez.dag.records.TezTaskAttemptID taId,
TaskAttemptState reportedState,
long timestamp) |
protected void |
serviceStart() |
protected void |
serviceStop() |
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, serviceInit, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStoppublic LegacySpeculator(org.apache.hadoop.conf.Configuration conf,
AppContext context,
Vertex vertex)
public LegacySpeculator(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.yarn.util.Clock clock,
Vertex vertex)
public LegacySpeculator(org.apache.hadoop.conf.Configuration conf,
TaskRuntimeEstimator estimator,
org.apache.hadoop.yarn.util.Clock clock,
Vertex vertex)
public int getMinimumAllowedSpeculativeTasks()
public double getProportionTotalTasksSpeculatable()
public double getProportionRunningTasksSpeculatable()
public long getSoonestRetryAfterNoSpeculate()
public long getSoonestRetryAfterSpeculate()
protected void serviceStart()
throws Exception
serviceStart in class org.apache.hadoop.service.AbstractServiceExceptionpublic boolean isStarted()
protected void serviceStop()
throws Exception
serviceStop in class org.apache.hadoop.service.AbstractServiceExceptionpublic Runnable createThread()
public void notifyAttemptStarted(org.apache.tez.dag.records.TezTaskAttemptID taId,
long timestamp)
public void notifyAttemptStatusUpdate(org.apache.tez.dag.records.TezTaskAttemptID taId,
TaskAttemptState reportedState,
long timestamp)
public void handle(SpeculatorEvent event)
protected void addSpeculativeAttempt(org.apache.tez.dag.records.TezTaskID taskID)
Copyright © 2020 Apache Software Foundation. All rights reserved.