Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public class TaskManagerConfig
private int maxWorkerThreads = Runtime.getRuntime().availableProcessors() * 2;
private Integer minDrivers;
private Integer initialSplitsPerNode;
private int minDriversPerTask = 3;
private int minDriversPerTask = 1;
private int maxDriversPerTask = Integer.MAX_VALUE;
private int maxTasksPerStage = Integer.MAX_VALUE;
private Duration splitConcurrencyAdjustmentInterval = new Duration(100, TimeUnit.MILLISECONDS);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,10 @@ public TaskExecutor(
checkArgument(interruptSplitInterval.getValue(SECONDS) >= 1.0, "interruptSplitInterval must be at least 1 second");

// we manage thread pool size directly, so create an unlimited pool
guaranteedNumberOfDriversPerTask = 1;
maximumNumberOfDriversPerTask = 1;
runnerThreads = 1;
minDrivers = 1;
this.executor = newCachedThreadPool(threadsNamed("task-processor-%s"));
this.executorMBean = new ThreadPoolExecutorMBean((ThreadPoolExecutor) executor);
this.runnerThreads = runnerThreads;
Expand Down Expand Up @@ -300,8 +304,9 @@ public TaskExecutor(
public synchronized void start()
{
checkState(!closed, "TaskExecutor is closed");
for (int i = 0; i < runnerThreads; i++) {
for (int i = 0; i < 1; i++) {
addRunnerThread();
log.info("Adding new runner thread");
}
if (interruptRunawaySplitsTimeout != null) {
long interval = (long) interruptSplitInterval.getValue(SECONDS);
Expand Down
Loading