String arguments passed to worker.
interface
cluster.ClusterSettings
interface ClusterSettings
- inspectPort?: number | () => number
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
. - serialization?: SerializationType
Specify the kind of serialization used for sending messages between processes. Possible values are
'json'
and'advanced'
. See Advanced serialization forchild_process
for more details. - stdio?: any[]
Configures 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 overridessilent
. Seechild_prcess.spawn()
'sstdio
. - windowsHide?: boolean
Hide the forked processes console window that would normally be created on Windows systems.