Interface

IClusterCoordinator

Claims shard ranges across hosts, heartbeats leases, publishes reshard generations.

Properties

NameTypeDescription
hostIdread-onlystringUnique id for this host process.

Methods

.publishReshard(totalShards)

totalShards: numberPromise<ReshardPlan>

Publish a new shard-count generation (e.g. after 4011 / guild growth). Hosts should drain and respawn against the new plan.

.release()

Promise<void>

Release all shards owned by this host.