Type:
ObjectexecArgv?:
string[]List of string arguments passed to the Node.js
executable. Default:
process.execArgv.exec?:
stringFile path to worker file. Default:
process.argv[1].args?:
string[]String arguments passed to worker.
Default:
process.argv.slice(2).cwd?:
stringCurrent working directory of the worker process. Default:
undefined (inherits from parent process).serialization?:
stringSpecify the kind of serialization used for sending
messages between processes. Possible values are
'json' and 'advanced'.
See Advanced serialization for child_process for more details.
Default: false.silent?:
booleanWhether or not to send output to parent's stdio.
Default:
false.stdio:
ArrayConfigures the stdio of forked processes. Because the
cluster module relies on IPC to function, this configuration must contain an
'ipc' entry. When this option is provided, it overrides silent. See
child_process.spawn()'s stdio.Sets inspector port of worker.
This can be a number, or a function that takes no arguments and returns a
number. By default each worker gets its own port, incremented from the
primary's
process.debugPort.windowsHide?:
booleanHide the forked processes console window that would
normally be created on Windows systems. Default:
false.After calling .setupPrimary() (or .fork()) this settings object will
contain the settings, including the default values.
This object is not intended to be changed or set manually.