ShardAllocator
ShardAllocator = (
shardId,members) =>NodeAddress
Defined in: src/cluster/sharding/ShardAllocator.ts:4
Strategy: given a shard id and the active member addresses, return the owner.
Parameters
Section titled “Parameters”shardId
Section titled “shardId”number
members
Section titled “members”ReadonlyArray<NodeAddress>