X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FPoolOptions.html;h=757900b2b6139365ce34b01a6ea8fbecbae24974;hb=862503b9f2480d51bf3a666fc4d1d2a9b3c06b33;hp=35a80f7c50313cc828f99f8a44fa8a16ac670de1;hpb=ef0bf5b82f7edb5cd87f4bffb784bb8fac189fb8;p=poolifier.git diff --git a/docs/interfaces/PoolOptions.html b/docs/interfaces/PoolOptions.html index 35a80f7c..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 default 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
Settings
Member Visibility
Theme
On This Page