Add fair sharing worker choice strategy
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 9 Oct 2022 21:07:33 +0000 (23:07 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 9 Oct 2022 21:07:33 +0000 (23:07 +0200)
commit23ff945ac0bc3b9bcf98c6491872cffaac805b73
tree413bac3480d3815453a81830d61aaa3ca57052b3
parentb3432a63039e7cb70c0448da5518690e457cd47e
Add fair sharing worker choice strategy

Close #339

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
19 files changed:
.eslintrc.js
CHANGELOG.md
README.md
benchmarks/internal/bench.js
benchmarks/internal/benchmark-utils.js
benchmarks/internal/cluster/dynamic.js
benchmarks/internal/cluster/fixed.js
benchmarks/internal/cluster/worker.js
benchmarks/internal/thread/dynamic.js
benchmarks/internal/thread/fixed.js
benchmarks/internal/thread/worker.js
rollup.config.mjs
src/pools/selection-strategies/fair-share-worker-choice-strategy.ts [new file with mode: 0644]
src/pools/selection-strategies/selection-strategies-types.ts
src/pools/selection-strategies/selection-strategies-utils.ts
src/pools/selection-strategies/weighted-round-robin-choice-strategy.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