Skip to content

ClusterSettings

[<Interface>]
type ClusterSettings =
    abstract member args: string array option with get, set
    abstract member cwd: string option with get, set
    abstract member exec: string option with get, set
    abstract member execArgv: string array option with get, set
    abstract member gid: float option with get, set
    abstract member inspectPort: U2<float,(unit -> float)> option with get, set
    abstract member serialization: SerializationType option with get, set
    abstract member silent: bool option with get, set
    abstract member stdio: obj array option with get, set
    abstract member uid: float option with get, set
    abstract member windowsHide: bool option with get, set
    static member Create (?execArgv: string array, ?exec: string, ?args: string array, ?silent: bool, ?stdio: obj array, ?uid: float, ?gid: float, ?inspectPort: U2<float,(unit -> float)>, ?serialization: SerializationType, ?cwd: string, ?windowsHide: bool) : ClusterSettings
AssemblyXantham.Fable.Node
Attributes[<Interface>]

Properties

abstract member args: string array option with get, set

String arguments passed to worker.

abstract member cwd: string option with get, set

Current working directory of the worker process.

abstract member exec: string option with get, set

File path to worker file.

abstract member execArgv: string array option with get, set

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

abstract member gid: float option with get, set

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

abstract member inspectPort: U2<float,(unit -> float)> option with get, set

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.

abstract member serialization: SerializationType option with get, set

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.

abstract member silent: bool option with get, set

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

abstract member stdio: obj array option with get, set

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.

abstract member uid: float option with get, set

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

abstract member windowsHide: bool option with get, set

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

Methods

static member Create (?execArgv: string array, ?exec: string, ?args: string array, ?silent: bool, ?stdio: obj array, ?uid: float, ?gid: float, ?inspectPort: U2<float,(unit -> float)>, ?serialization: SerializationType, ?cwd: string, ?windowsHide: bool) : ClusterSettings