Add WRR worker choice strategy
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 9 Oct 2022 20:06:28 +0000 (22:06 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 9 Oct 2022 20:06:28 +0000 (22:06 +0200)
commitb3432a63039e7cb70c0448da5518690e457cd47e
tree8d08b84ad8035f72fc610d93e0621079e8e90b22
parent4a297cd559d11d60dbc5310c11914a49496c421c
Add WRR worker choice strategy

Close #363

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
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 [new file with mode: 0644]
tests/pools/selection-strategies/selection-strategies.test.js