Interface ClusterManagerOptions<T>

interface ClusterManagerOptions<T> {
    autoRespawn?: boolean;
    cluster?: T extends "fork"
        ? ForkOptions
        : WorkerOptions;
    clusterCount?: number;
    execArgv?: any[];
    mode?: T;
    queueAutoSpawn?: boolean;
    queueTimeout?: number;
    server: ServerClientOptions;
    shardArgs?: any[];
    shardsPerCluster?: number;
    spawnDelay?: number;
    spawnTimeout?: number;
}

Type Parameters

Properties

autoRespawn?: boolean

Whether to automatically respawn dead clusters.

cluster?: T extends "fork"
    ? ForkOptions
    : WorkerOptions
clusterCount?: number

Total number of clusters.

execArgv?: any[]

Exec args.

mode?: T

Mode of the cluster manager.

queueAutoSpawn?: boolean

Whether to automatically spawn clusters in the queue.

queueTimeout?: number

Queue spawn timeout.

Server options.

shardArgs?: any[]

Shard args.

shardsPerCluster?: number

Number of shards per cluster.

spawnDelay?: number

Time to wait before spawning a new cluster.

spawnTimeout?: number

Spawn timeout of clusters.

Generated using TypeDoc