Skip to content

rendezvousAllocator

const rendezvousAllocator: ShardAllocator

Defined in: src/cluster/sharding/ShardAllocator.ts:27

Stable ring-hash allocator: for each shard, hash together (shardId, address) and pick the address with the highest hash (highest-random-weight / rendezvous hashing). When one node leaves, only its shards relocate — the rest stay put. Better rebalance behaviour than modulo at the cost of a bit more computation.