repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into elu-strategy
[poolifier.git]
/
src
/
pools
/
selection-strategies
/
selection-strategies-types.ts
diff --git
a/src/pools/selection-strategies/selection-strategies-types.ts
b/src/pools/selection-strategies/selection-strategies-types.ts
index 18ba40b410d5190271a82d248a12b5e2179485de..b96bb029a0befe39ce438beb368e2c0dbecb87ab 100644
(file)
--- a/
src/pools/selection-strategies/selection-strategies-types.ts
+++ b/
src/pools/selection-strategies/selection-strategies-types.ts
@@
-14,6
+14,12
@@
export const WorkerChoiceStrategies = Object.freeze({
* Least busy worker selection strategy.
*/
LEAST_BUSY: 'LEAST_BUSY',
* Least busy worker selection strategy.
*/
LEAST_BUSY: 'LEAST_BUSY',
+ /**
+ * Least ELU worker selection strategy.
+ *
+ * @experimental
+ */
+ LEAST_ELU: 'LEAST_ELU',
/**
* Fair share worker selection strategy.
*/
/**
* Fair share worker selection strategy.
*/
@@
-65,7
+71,7
@@
export interface WorkerChoiceStrategyOptions {
*
* @internal
*/
*
* @internal
*/
-export interface
Required
Statistics {
+export interface
Task
Statistics {
/**
* Require tasks runtime.
*/
/**
* Require tasks runtime.
*/
@@
-90,6
+96,10
@@
export interface RequiredStatistics {
* Require tasks median wait time.
*/
medWaitTime: boolean
* Require tasks median wait time.
*/
medWaitTime: boolean
+ /**
+ * Event loop utilization.
+ */
+ elu: boolean
}
/**
}
/**
@@
-97,9
+107,9
@@
export interface RequiredStatistics {
*/
export interface IWorkerChoiceStrategy {
/**
*/
export interface IWorkerChoiceStrategy {
/**
- * Required tasks
usage
statistics.
+ * Required tasks statistics.
*/
*/
- readonly
requiredStatistics: Required
Statistics
+ readonly
taskStatistics: Task
Statistics
/**
* Resets strategy internals.
*
/**
* Resets strategy internals.
*