ClusterPlanInfo
Defined in: packages/sharding/src/cluster.ts:57
What the plan event reports.
Properties
Section titled âPropertiesâclusterCount
Section titled âclusterCountâclusterCount:
number
Defined in: packages/sharding/src/cluster.ts:60
clusterCountSource
Section titled âclusterCountSourceâclusterCountSource:
ClusterCountSource
Defined in: packages/sharding/src/cluster.ts:62
"clusterCount", "shardsPerCluster" or "default" (the number of CPUs).
clusters
Section titled âclustersâclusters:
object[]
Defined in: packages/sharding/src/cluster.ts:65
id:
number
shards:
number[]
identifyCoordinated
Section titled âidentifyCoordinatedâidentifyCoordinated:
boolean
Defined in: packages/sharding/src/cluster.ts:68
maxConcurrency
Section titled âmaxConcurrencyâmaxConcurrency:
number
Defined in: packages/sharding/src/cluster.ts:66
requestedClusterCount
Section titled ârequestedClusterCountârequestedClusterCount:
number
Defined in: packages/sharding/src/cluster.ts:64
The count asked for; larger than clusterCount when there were more clusters than shards.
startup
Section titled âstartupâstartup:
"safe"|"sequential"
Defined in: packages/sharding/src/cluster.ts:67
totalShards
Section titled âtotalShardsâtotalShards:
number
Defined in: packages/sharding/src/cluster.ts:59
The deploymentâs shard count (Discordâs num_shards), the same in every worker.