ClusterPlanOptions
Defined in: packages/sharding/src/context.ts:85
Options for planClusters; set clusterCount or shardsPerCluster, not both.
Properties
Section titled “Properties”clusterCount?
Section titled “clusterCount?”
optionalclusterCount?:number
Defined in: packages/sharding/src/context.ts:89
Split the shards over this many clusters (Mode A).
defaultClusterCount
Section titled “defaultClusterCount”defaultClusterCount:
number
Defined in: packages/sharding/src/context.ts:93
Cluster count when neither is set (Mode C), e.g. the number of CPUs.
shardIds
Section titled “shardIds”shardIds: readonly
number[]
Defined in: packages/sharding/src/context.ts:87
The deployment’s shards, in order.
shardsPerCluster?
Section titled “shardsPerCluster?”
optionalshardsPerCluster?:number
Defined in: packages/sharding/src/context.ts:91
Fill clusters with this many shards each; the last may have fewer (Mode B).