From: Jérôme Benoit Date: Sat, 3 Aug 2024 20:56:25 +0000 (+0200) Subject: docs(api): add missing tasksStealingRatio default value X-Git-Tag: v4.2.0~19 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=5b65da9662b764070a8414e2cce53294f5fd9498;p=poolifier.git docs(api): add missing tasksStealingRatio default value Signed-off-by: Jérôme Benoit --- diff --git a/docs/api.md b/docs/api.md index bf141111..580dfd2b 100644 --- a/docs/api.md +++ b/docs/api.md @@ -147,7 +147,7 @@ An object with these properties: - `tasksStealingRatio` (optional) - The ratio of worker nodes that can steal tasks from another worker node. It must be a number between 0 and 1. - `tasksFinishedTimeout` (optional) - Queued tasks finished timeout in milliseconds at worker termination. - Default: `{ size: (pool maximum size)^2, concurrency: 1, taskStealing: true, tasksStealingOnBackPressure: false, tasksFinishedTimeout: 2000 }` + Default: `{ size: (pool maximum size)^2, concurrency: 1, taskStealing: true, tasksStealingOnBackPressure: false, tasksStealingRatio: 0.6, tasksFinishedTimeout: 2000 }` - `workerOptions` (optional) - An object with the worker options to pass to worker. See [worker_threads](https://nodejs.org/api/worker_threads.html#worker_threads_new_worker_filename_options) for more details.