worker: this.worker,
minSize: this.minSize,
maxSize: this.maxSize,
- utilization: round(this.utilization),
+ ...(this.workerChoiceStrategyContext.getTaskStatisticsRequirements()
+ .runTime.aggregate &&
+ this.workerChoiceStrategyContext.getTaskStatisticsRequirements().runTime
+ .aggregate && { utilization: round(this.utilization) }),
workerNodes: this.workerNodes.length,
idleWorkerNodes: this.workerNodes.reduce(
(accumulator, workerNode) =>
worker: WorkerTypes.thread,
minSize: numberOfWorkers,
maxSize: numberOfWorkers,
- utilization: 0,
workerNodes: numberOfWorkers,
idleWorkerNodes: numberOfWorkers,
busyWorkerNodes: 0,
worker: WorkerTypes.cluster,
minSize: numberOfWorkers,
maxSize: numberOfWorkers * 2,
- utilization: 0,
workerNodes: numberOfWorkers,
idleWorkerNodes: numberOfWorkers,
busyWorkerNodes: 0,
worker: WorkerTypes.thread,
minSize: expect.any(Number),
maxSize: expect.any(Number),
- utilization: 0,
workerNodes: expect.any(Number),
idleWorkerNodes: expect.any(Number),
busyWorkerNodes: expect.any(Number),
worker: WorkerTypes.thread,
minSize: expect.any(Number),
maxSize: expect.any(Number),
- utilization: 0,
workerNodes: expect.any(Number),
idleWorkerNodes: expect.any(Number),
busyWorkerNodes: expect.any(Number),