Skip to content

Commit 1a0f092

Browse files
authored
Enable tracking for write_coordination threadpool (#134520)
Also enabled for system_write_coordination threadpool. Relates: ES-12865
1 parent 2e78330 commit 1a0f092

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/org/elasticsearch/threadpool/DefaultBuiltInExecutorBuilders.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public Map<String, ExecutorBuilder> getBuilders(Settings settings, int allocated
4545
ThreadPool.Names.WRITE_COORDINATION,
4646
allocatedProcessors,
4747
10000,
48-
EsExecutors.TaskTrackingConfig.DO_NOT_TRACK
48+
EsExecutors.TaskTrackingConfig.builder().trackOngoingTasks().trackExecutionTime(indexAutoscalingEWMA).build()
4949
)
5050
);
5151
result.put(
@@ -210,7 +210,7 @@ public Map<String, ExecutorBuilder> getBuilders(Settings settings, int allocated
210210
ThreadPool.Names.SYSTEM_WRITE_COORDINATION,
211211
halfProcMaxAt5,
212212
1000,
213-
EsExecutors.TaskTrackingConfig.DO_NOT_TRACK,
213+
EsExecutors.TaskTrackingConfig.builder().trackOngoingTasks().trackExecutionTime(indexAutoscalingEWMA).build(),
214214
true
215215
)
216216
);

0 commit comments

Comments
 (0)