콘텐츠로 이동
한국어

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.