Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ClusterPoolOptions

Options for a poolifier cluster pool.

Hierarchy

Index

Properties

Optional enableEvents

enableEvents: undefined | boolean

Pool events emission.

Default to true.

Optional env

env: any

Key/value pairs to add to worker process environment.

see

https://nodejs.org/api/cluster.html#cluster_cluster_fork_env

Optional errorHandler

errorHandler: undefined | ErrorHandler<Worker>

A function that will listen for error event on each worker.

Optional exitHandler

exitHandler: undefined | ExitHandler<Worker>

A function that will listen for exit event on each worker.

Optional onlineHandler

onlineHandler: undefined | OnlineHandler<Worker>

A function that will listen for online event on each worker.

Optional workerChoiceStrategy

workerChoiceStrategy: undefined | "ROUND_ROBIN" | "LESS_RECENTLY_USED"

The work choice strategy to use in this pool.

Generated using TypeDoc