ClusterSettings

external interface ClusterSettings(source)

Properties

Link copied to clipboard
abstract external var args: ReadonlyArray<String>?

String arguments passed to worker.

Link copied to clipboard
abstract external var cwd: String?

Current working directory of the worker process.

Link copied to clipboard
abstract external var exec: String?

File path to worker file.

Link copied to clipboard
abstract external var execArgv: ReadonlyArray<String>?

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

Link copied to clipboard
abstract external var gid: Double?

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

Link copied to clipboard
abstract external var inspectPort: Any?

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.

Link copied to clipboard
abstract external var serialization: SerializationType?

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.

Link copied to clipboard
abstract external var silent: Boolean?

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

Link copied to clipboard
abstract external var stdio: ReadonlyArray<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 overrides silent. See child_prcess.spawn()'s stdio.

Link copied to clipboard
abstract external var uid: Double?

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

Link copied to clipboard
abstract external var windowsHide: Boolean?

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