* @defaultValue false
*/
medRunTime?: boolean
+ /**
+ * Use tasks median wait time instead of average runtime.
+ *
+ * @defaultValue false
+ */
+ medWaitTime?: boolean
/**
* Worker weights to use for weighted round robin worker selection strategy.
* Weight is the tasks maximum average or median runtime in milliseconds.
}
/**
- * Pool worker tasks usage statistics requirements.
+ * Pool worker node worker usage statistics requirements.
*
* @internal
*/
-export interface RequiredStatistics {
+export interface TaskStatistics {
/**
* Require tasks runtime.
*/
* Require tasks median runtime.
*/
medRunTime: boolean
+ /**
+ * Require tasks wait time.
+ */
+ waitTime: boolean
+ /**
+ * Require tasks average wait time.
+ */
+ avgWaitTime: boolean
+ /**
+ * Require tasks median wait time.
+ */
+ medWaitTime: boolean
+ /**
+ * Event loop utilization.
+ */
+ elu: boolean
}
/**
*/
export interface IWorkerChoiceStrategy {
/**
- * Required tasks usage statistics.
+ * Required tasks statistics.
*/
- readonly requiredStatistics: RequiredStatistics
+ readonly taskStatistics: TaskStatistics
/**
* Resets strategy internals.
*