feat: add custom worker weights to worker choice strategies options
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 5 May 2023 18:41:43 +0000 (20:41 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 5 May 2023 18:41:43 +0000 (20:41 +0200)
commit08f3f44cef6256fdbab1a2a56842b291fd6dcd42
tree2ca20f9537f96156d35dcc4a0e28318f24d4ff29
parentfeec4213515cceb460e722dedca403914764b487
feat: add custom worker weights to worker choice strategies options

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
16 files changed:
CHANGELOG.md
src/pools/abstract-pool.ts
src/pools/cluster/dynamic.ts
src/pools/cluster/fixed.ts
src/pools/pool.ts
src/pools/selection-strategies/abstract-worker-choice-strategy.ts
src/pools/selection-strategies/fair-share-worker-choice-strategy.ts
src/pools/selection-strategies/less-busy-worker-choice-strategy.ts
src/pools/selection-strategies/less-used-worker-choice-strategy.ts
src/pools/selection-strategies/selection-strategies-types.ts
src/pools/selection-strategies/weighted-round-robin-worker-choice-strategy.ts
src/pools/thread/dynamic.ts
src/pools/thread/fixed.ts
tests/pools/selection-strategies/selection-strategies.test.js
tests/pools/selection-strategies/weighted-round-robin-worker-choice-strategy.test.js
tests/pools/selection-strategies/worker-choice-strategy-context.test.js