Skip to main content
ClusterSettings - cluster - Node documentation
interface ClusterSettings

Usage in Deno

import { type ClusterSettings } from "node:cluster";
<div class="alert alert-warning"><div><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M12 9v4" /> <path d="M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0z" /> <path d="M12 16h.01" /> </svg> Deno compatibility</div><div><p> This symbol is a non-functional stub.</p> </div></div>

Properties

optional
execArgv: string[] | undefined

List of string arguments passed to the Node.js executable.

optional
exec: string | undefined

File path to worker file.

optional
args: string[] | undefined

String arguments passed to worker.

optional
silent: boolean | undefined

Whether or not to send output to parent's stdio.

optional
stdio: any[] | undefined

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 overrides silent. See child_prcess.spawn()'s stdio.

optional
uid: number | undefined

Sets the user identity of the process. (See setuid(2).)

optional
gid: number | undefined

Sets the group identity of the process. (See setgid(2).)

optional
inspectPort:
number
| (() => number)
| undefined

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.

optional
serialization: SerializationType | undefined

Specify 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.

optional
cwd: string | undefined

Current working directory of the worker process.

optional
windowsHide: boolean | undefined

Hide the forked processes console window that would normally be created on Windows systems.