X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FPoolOptions.html;h=757900b2b6139365ce34b01a6ea8fbecbae24974;hb=9451bebdd6d0b7c9b5dded635ee391e116f869e1;hp=e01708d34bf8c979c6fff83a8ed0f291a3d0efff;hpb=ea4b5fd037c5fe09eb6a2810332ad6bed1b5bc7f;p=poolifier.git diff --git a/docs/interfaces/PoolOptions.html b/docs/interfaces/PoolOptions.html index e01708d3..757900b2 100644 --- a/docs/interfaces/PoolOptions.html +++ b/docs/interfaces/PoolOptions.html @@ -1,6 +1,6 @@ -
Options for a poolifier pool.
+- Preparing search index...
- The search index is not available
poolifier - v4.0.15Interface PoolOptions<Worker>
Options for a poolifier pool.
    enableEvents?: boolean;
    enableTasksQueue?: boolean;
    env?: Record<string, unknown>;
    errorHandler?: ErrorHandler<Worker>;
    exitHandler?: ExitHandler<Worker>;
    messageHandler?: MessageHandler<Worker>;
    onlineHandler?: OnlineHandler<Worker>;
    restartWorkerOnError?: boolean;
    settings?: ClusterSettings;
    startWorkers?: boolean;
    tasksQueueOptions?: TasksQueueOptions;
    workerChoiceStrategy?: "ROUND_ROBIN" | "LEAST_USED" | "LEAST_BUSY" | "LEAST_ELU" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" | "INTERLEAVED_WEIGHTED_ROUND_ROBIN";
    workerChoiceStrategyOptions?: WorkerChoiceStrategyOptions;
    workerOptions?: WorkerOptions;
}
Type Parameters
Type of worker.
-Index
Properties
Index
Properties
Properties
Optional
enablePool events integrated with async resource emission.
-Default Value
Default Value
-Optional
enablePool worker node tasks queue.
-Default Value
Optional
enablePool worker node tasks queue.
+Default Value
-Optional
envKey/value pairs to add to worker process environment.
+Optional
envKey/value pairs to add to worker process environment.
See
https://nodejs.org/api/cluster.html#cluster_cluster_fork_env
-Optional
errorA function that will listen for error event on each worker.
+Optional
errorA function that will listen for error event on each worker.
Default Value
-() => {}
Optional
exitA function that will listen for exit event on each worker.
+Optional
exitA function that will listen for exit event on each worker.
Default Value
-() => {}
Optional
messageA function that will listen for message event on each worker.
+Optional
messageA function that will listen for message event on each worker.
Default Value
-() => {}
Optional
onlineA function that will listen for online event on each worker.
+Optional
onlineA function that will listen for online event on each worker.
Default Value
-() => {}
Optional
restartRestart worker on error.
-Optional
settingsCluster settings.
+Optional
restartRestart worker on error.
+Optional
settingsCluster settings.
See
https://nodejs.org/api/cluster.html#cluster_cluster_settings
-Optional
startWhether to start the minimum number of workers at pool initialization.
-Default Value
Optional
startWhether to start the minimum number of workers at pool initialization.
+Default Value
-Optional
tasksPool worker node tasks queue options.
-Optional
workerThe worker choice strategy to use in this pool.
-Default Value
Optional
tasksPool worker node tasks queue options.
+Optional
workerThe default worker choice strategy to use in this pool.
+Default Value
-Optional
workerThe worker choice strategy options.
-Optional
workerWorker options.
+Optional
workerThe worker choice strategy options.
+Optional
workerWorker options.
See
https://nodejs.org/api/worker_threads.html#new-workerfilename-options
-Settings
Member Visibility
Theme
On This Page
Generated using TypeDoc
Settings
Member Visibility
Theme
On This Page