moduloAllocator
constmoduloAllocator:ShardAllocator
Defined in: src/cluster/sharding/ShardAllocator.ts:14
Simple modulo allocator: sort addresses and pick shardId % n. Every node computes the same assignment deterministically. Works well when the member set is stable; moves a lot of shards when it changes.