ShardingManagerOptions

export interface ShardingManagerOptions
export interface ShardingManagerOptions
The options to spawn shards with for a ShardingManager.
execArgv?:readonly string[]
Arguments to pass to the shard script executable when spawning
Default value
[]
Which mode to use for shards
Default value
'process'
respawn?:boolean
Whether shards should automatically respawn upon exiting
Default value
true
shardArgs?:readonly string[]
Arguments to pass to the shard script when spawning
Default value
[]
shardList?:readonly number[] | 'auto'
List of shards to spawn or "auto"
Default value
'auto'
silent?:boolean
Whether to pass the silent flag to child process (only available when mode is set to 'process')
token?:string
Token to use for automatic shard count and passing to shards
totalShards?:number | 'auto'
Number of total shards of all shard managers or "auto"
Default value
'auto'