Zum Inhalt springen
Deutsch

ShardMapChanged

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

Defined in: src/cluster/ClusterEvents.ts:165

Shard ownership map recomputed. Published by every node’s region whenever the coordinator reallocates, so a listener sees the same map wherever it subscribes — the coordinator itself only runs on the leader.

Bursty by nature (a fresh cluster places every shard at once), so the coordinator coalesces a burst into one broadcast; version counts broadcasts, not individual assignments.

new ShardMapChanged(type, shards, version, regions?): ShardMapChanged

Defined in: src/cluster/ClusterEvents.ts:166

string

ReadonlyMap<number, string>

shardId → region key.

number

readonly ShardMapRegion[] = []

ShardMapChanged

readonly regions: readonly ShardMapRegion[] = []

Defined in: src/cluster/ClusterEvents.ts:171


readonly shards: ReadonlyMap<number, string>

Defined in: src/cluster/ClusterEvents.ts:169

shardId → region key.


readonly type: string

Defined in: src/cluster/ClusterEvents.ts:167


readonly version: number

Defined in: src/cluster/ClusterEvents.ts:170