feat: add less busy worker choice strategy
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 2 Apr 2023 17:59:21 +0000 (19:59 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 2 Apr 2023 17:59:21 +0000 (19:59 +0200)
commit168c526f6e6913506e56f7d5107335c3d3d42938
tree7c38dda56b8456255dbce7266e24b158d72b49c4
parent737c6d97f8089996a9e30f77104d58afcf5791ba
feat: add less busy worker choice strategy

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
14 files changed:
CHANGELOG.md
README.md
benchmarks/internal/bench.js
benchmarks/internal/cluster/dynamic.js
benchmarks/internal/cluster/fixed.js
benchmarks/internal/thread/dynamic.js
benchmarks/internal/thread/fixed.js
src/pools/selection-strategies/less-busy-worker-choice-strategy.ts [new file with mode: 0644]
src/pools/selection-strategies/less-used-worker-choice-strategy.ts
src/pools/selection-strategies/selection-strategies-types.ts
src/pools/selection-strategies/selection-strategies-utils.ts
tests/pools/selection-strategies/selection-strategies-utils.test.js
tests/pools/selection-strategies/selection-strategies.test.js
tests/pools/selection-strategies/worker-choice-strategy-context.test.js