Remove DistributionStat for PeakRunningTasks
DistributionStat is relatively more expensive,
Use QueryManager:RunningTaskCount instead.
@@ -55,7 +55,6 @@ public class QueryManagerStats
private final TimeStat queuedTime = new TimeStat(MILLISECONDS);
private final DistributionStat wallInputBytesRate = new DistributionStat();
private final DistributionStat cpuInputByteRate = new DistributionStat();
- private final DistributionStat peakRunningTasksStat = new DistributionStat();
public void trackQueryStats(DispatchQuery managedQueryExecution)
{
@@ -111,11 +110,6 @@ public class QueryManagerStats
cpuInputByteRate.add(rawInputBytes * 1000 / executionCpuMillis);
}
- long peakRunningTasks = info.getQueryStats().getPeakRunningTasks();
- if (peakRunningTasks > 0) {
- peakRunningTasksStat.add(peakRunningTasks);
- }
-
if (info.getErrorCode() != null) {
switch (info.getErrorCode().getType()) {
case USER_ERROR:
@@ -322,11 +316,4 @@ public class QueryManagerStats
{
return cpuInputByteRate;
}
-
- @Managed(description = "Distribution of query peak running tasks")
- @Nested
- public DistributionStat getPeakRunningTasksStat()
- {
- return peakRunningTasksStat;
- }
}
