Jérôme Benoit [Sun, 16 Oct 2022 22:15:04 +0000 (00:15 +0200)]
Run benchmarks versus latest external pool libraries
Close #594
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 16 Oct 2022 18:15:49 +0000 (20:15 +0200)]
Refine release-it configuration
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 16 Oct 2022 17:48:25 +0000 (19:48 +0200)]
Add script for doing a release
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 16 Oct 2022 17:42:49 +0000 (19:42 +0200)]
Add release-it configuration
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 16 Oct 2022 17:41:37 +0000 (19:41 +0200)]
Add release-it
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 16 Oct 2022 09:44:48 +0000 (11:44 +0200)]
Align istanbul lines coverage with sonar
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 16 Oct 2022 09:12:04 +0000 (11:12 +0200)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 15 Oct 2022 22:05:40 +0000 (00:05 +0200)]
Cleanups
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 15 Oct 2022 19:17:00 +0000 (21:17 +0200)]
Revert "CI: move linting after installation"
This reverts commit
a34ce9a052739a56d764ba1aa3ede8d19aded4e3.
Jérôme Benoit [Sat, 15 Oct 2022 19:13:34 +0000 (21:13 +0200)]
CI: move linting after installation
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 15 Oct 2022 18:09:17 +0000 (20:09 +0200)]
Add Unreleased section to CHANGELOG.md
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 15 Oct 2022 17:47:16 +0000 (19:47 +0200)]
Remove uneeded intermediate variable in fair share tasks scheduler
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Jérôme Benoit [Sat, 15 Oct 2022 16:53:11 +0000 (18:53 +0200)]
Move worker choice strategy tests into in its own file
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 15 Oct 2022 15:21:59 +0000 (17:21 +0200)]
Fix CI job condition
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 15 Oct 2022 14:17:24 +0000 (16:17 +0200)]
Tests: use getter for worker choice strategy instance
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 15 Oct 2022 13:32:24 +0000 (15:32 +0200)]
Refine lint staged configuration
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 15 Oct 2022 11:09:19 +0000 (13:09 +0200)]
Generate API documentation
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 15 Oct 2022 11:08:00 +0000 (13:08 +0200)]
Merge branch 'master' of github.com:poolifier/poolifier
Jérôme Benoit [Sat, 15 Oct 2022 11:05:36 +0000 (13:05 +0200)]
Add support for [cluster settings](https://nodejs.org/api/cluster.html#cluster_cluster_settings) in cluster pool options.
Close #98
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 15 Oct 2022 10:11:29 +0000 (12:11 +0200)]
README.md: fix typo
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 15 Oct 2022 06:44:12 +0000 (08:44 +0200)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 15 Oct 2022 06:26:09 +0000 (08:26 +0200)]
Fix GitHub actions issues on tests with windows and stable node
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 15 Oct 2022 06:08:22 +0000 (08:08 +0200)]
Update API documentation
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 15 Oct 2022 06:08:22 +0000 (08:08 +0200)]
Updae API documentation
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 15 Oct 2022 06:04:31 +0000 (08:04 +0200)]
Only node version => 16.x are supported for 2.3.x release
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 15 Oct 2022 05:56:29 +0000 (07:56 +0200)]
Merge branch 'master' of github.com:poolifier/poolifier
Jérôme Benoit [Sat, 15 Oct 2022 05:55:36 +0000 (07:55 +0200)]
Fix GitHub action OS matrix usage
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 15 Oct 2022 05:37:24 +0000 (07:37 +0200)]
Update API documentation
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 15 Oct 2022 05:35:08 +0000 (07:35 +0200)]
Silence typedoc warnings
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 15 Oct 2022 05:25:16 +0000 (07:25 +0200)]
Refine some comments
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 14 Oct 2022 22:56:10 +0000 (00:56 +0200)]
WRR: Fix worker choice initial runtime value on each round
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 14 Oct 2022 22:44:09 +0000 (00:44 +0200)]
Optimize WRR implementation
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 14 Oct 2022 21:50:25 +0000 (23:50 +0200)]
WRR strategy: cleanups
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 14 Oct 2022 21:17:43 +0000 (23:17 +0200)]
Fixes to worker selection strategies
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 14 Oct 2022 19:03:26 +0000 (21:03 +0200)]
Fix cross OS CI GH actions
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 14 Oct 2022 18:53:30 +0000 (20:53 +0200)]
Add cross OS CI tests
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 14 Oct 2022 16:39:34 +0000 (18:39 +0200)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 14 Oct 2022 09:47:57 +0000 (11:47 +0200)]
Flag some attributes as readonly
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 14 Oct 2022 07:13:04 +0000 (09:13 +0200)]
README.md: small refinements
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 14 Oct 2022 06:53:35 +0000 (08:53 +0200)]
README.md: add link to API documentation
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 14 Oct 2022 06:40:51 +0000 (08:40 +0200)]
Default random integer generation to maximun safe value
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 13 Oct 2022 21:57:20 +0000 (23:57 +0200)]
@types/node update to 18.8.5
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 13 Oct 2022 21:54:51 +0000 (23:54 +0200)]
Tests: be more strict on number expectation
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 13 Oct 2022 21:45:05 +0000 (23:45 +0200)]
Merge branch 'master' of github.com:poolifier/poolifier
Jérôme Benoit [Thu, 13 Oct 2022 21:44:22 +0000 (23:44 +0200)]
README.md: refine links
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 13 Oct 2022 21:16:36 +0000 (23:16 +0200)]
Merge branch 'master' of github.com:poolifier/poolifier
Shinigami [Thu, 13 Oct 2022 21:00:32 +0000 (23:00 +0200)]
Prevent spam for inactive maintainer
Jérôme Benoit [Thu, 13 Oct 2022 21:00:26 +0000 (23:00 +0200)]
Refresh documentation links to 2.3.1 version commit
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 13 Oct 2022 20:50:22 +0000 (22:50 +0200)]
Version 2.3.1
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 13 Oct 2022 20:41:30 +0000 (22:41 +0200)]
README.md: Fix formatting
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 13 Oct 2022 20:33:27 +0000 (22:33 +0200)]
Prepare the 2.3.0 changelog
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 13 Oct 2022 20:28:18 +0000 (22:28 +0200)]
Update documentation for 2.3.0 release
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 13 Oct 2022 20:22:31 +0000 (22:22 +0200)]
Bump version in sonar configuration
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 13 Oct 2022 20:19:44 +0000 (22:19 +0200)]
Improve tests coverage on worker choice strategies
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 13 Oct 2022 19:41:45 +0000 (21:41 +0200)]
Fix tests
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 13 Oct 2022 19:35:50 +0000 (21:35 +0200)]
Add tests for WRR worker choice strategy
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 13 Oct 2022 19:09:44 +0000 (21:09 +0200)]
Improve strategies internals reset tests
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 13 Oct 2022 18:58:20 +0000 (20:58 +0200)]
Merge branch 'master' of github.com:poolifier/poolifier
Jérôme Benoit [Thu, 13 Oct 2022 18:57:25 +0000 (20:57 +0200)]
Fix strategies internals reset
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 13 Oct 2022 18:10:00 +0000 (20:10 +0200)]
Add code sonarlint configuration
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 13 Oct 2022 14:49:55 +0000 (16:49 +0200)]
Prepare for 2.3.0 release
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Jérôme Benoit [Wed, 12 Oct 2022 21:55:21 +0000 (23:55 +0200)]
Tests: remove unused variables
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 12 Oct 2022 21:23:37 +0000 (23:23 +0200)]
Tests: improve strategies initialization coverage
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 12 Oct 2022 17:45:31 +0000 (19:45 +0200)]
Tests: check strategy internal statistics at pool creation
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 12 Oct 2022 17:11:38 +0000 (19:11 +0200)]
Tests: also test strategy statistics reset on dynamic pool
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 12 Oct 2022 13:50:36 +0000 (15:50 +0200)]
Tests: assess internal strategy statistics resets at changing it
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 12 Oct 2022 03:27:23 +0000 (05:27 +0200)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 11 Oct 2022 23:10:18 +0000 (01:10 +0200)]
Document fixes to worker choice strategies
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 11 Oct 2022 22:40:20 +0000 (00:40 +0200)]
Tests: simplify tasks usage reset
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 11 Oct 2022 22:02:00 +0000 (00:02 +0200)]
Test: Verify that worker pool tasks usage are reset at worker choice strategy change, take2
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 11 Oct 2022 21:44:29 +0000 (23:44 +0200)]
Tests: fix promises handling
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 11 Oct 2022 21:16:38 +0000 (23:16 +0200)]
Tests: Verify that worker pool tasks usage are reset at worker choice strategy change
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 11 Oct 2022 20:35:06 +0000 (22:35 +0200)]
Reset all internal statistics at worker choice strategy change
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 11 Oct 2022 19:14:30 +0000 (21:14 +0200)]
Strict boolean check
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 11 Oct 2022 11:09:51 +0000 (13:09 +0200)]
Refine lint-staged configuration
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 11 Oct 2022 09:19:45 +0000 (11:19 +0200)]
Comment spell fixlet
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 11 Oct 2022 09:16:28 +0000 (11:16 +0200)]
Spell fixlets in comment
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 11 Oct 2022 08:57:48 +0000 (10:57 +0200)]
WRR strategy: round the default weight computation
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 10 Oct 2022 21:16:50 +0000 (23:16 +0200)]
Cleanup mocha configuration
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 10 Oct 2022 20:45:56 +0000 (22:45 +0200)]
Formatting fixlet
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 10 Oct 2022 20:44:13 +0000 (22:44 +0200)]
Enchance benchmarking code
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 10 Oct 2022 19:57:38 +0000 (21:57 +0200)]
new Date().getTime() -> Date.now()
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 10 Oct 2022 19:28:28 +0000 (21:28 +0200)]
Uniformize some comments
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 10 Oct 2022 19:22:42 +0000 (21:22 +0200)]
Fix WRR worker choice strategy implementation
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 10 Oct 2022 17:54:58 +0000 (19:54 +0200)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 10 Oct 2022 17:09:42 +0000 (19:09 +0200)]
src/pools/selection-strategies/weighted-round-robin-choice-strategy.ts -> src/pools/selection-strategies/weighted-round-robin-worker-choice-strategy.ts
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 10 Oct 2022 16:49:37 +0000 (18:49 +0200)]
Strict boolean check
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 10 Oct 2022 16:32:03 +0000 (18:32 +0200)]
Verify that the configured worker choice is going to be used when a
dynamic pool is busy
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 10 Oct 2022 16:12:18 +0000 (18:12 +0200)]
Add WRR worker choice strategy to benchmark
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 10 Oct 2022 15:23:31 +0000 (17:23 +0200)]
Cleanup tests code
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 10 Oct 2022 12:49:44 +0000 (14:49 +0200)]
Fix tests with WRR worker choice strategy
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 10 Oct 2022 12:33:02 +0000 (14:33 +0200)]
Fix task runtime statistics usage calculation logic
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 10 Oct 2022 12:04:47 +0000 (14:04 +0200)]
Stricter tests expectations
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 10 Oct 2022 08:54:32 +0000 (10:54 +0200)]
Fix fair share strategy unix timestamp comparison
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 10 Oct 2022 08:14:02 +0000 (10:14 +0200)]
Allow worker choice strategy to specify their statistics requirements
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 10 Oct 2022 06:33:39 +0000 (08:33 +0200)]
Add eslint report to sonar
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 9 Oct 2022 23:10:10 +0000 (01:10 +0200)]
Fix missed Promise.all usage in tests
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 9 Oct 2022 23:07:09 +0000 (01:07 +0200)]
Revert Promise.all usage in tests
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 9 Oct 2022 22:10:35 +0000 (00:10 +0200)]
Fix pool execute promises fullfilment in tests
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 9 Oct 2022 21:59:53 +0000 (23:59 +0200)]
.eslintrc.js: remove uneeded rules for tests
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>