.destroy()
→ Promise<void>
await clusterManager.destroy();Class
new ClusterManager(options: ClusterManagerOptions)ClusterManagerOptions| Name | Type | Description |
|---|---|---|
| currentLeaseread-only | ShardLease | null |
→ Promise<void>
await clusterManager.destroy();totalShards: number → Promise<ReshardPlan>
await clusterManager.requestReshard(totalShards);spawnLocal: (lease: ShardLease, plan: ReshardPlan) => Promise<void> → Promise<ShardLease>
Claim shards and start heartbeating. spawnLocal receives the leased shard ids and total shard count from the plan.
await clusterManager.start(spawnLocal);