class Movie::Cluster::RendezvousAllocation

Overview

Highest-random-weight hashing keeps every shard on its previous owner when another member is added, except for shards won by the new member.

Defined in:

movie/cluster/sharding/strategies.cr

Instance Method Summary

Instance methods inherited from class Movie::Cluster::ShardAllocationStrategy

allocate(shard_id : Int32, members : Array(Member), current_allocations : ShardAllocations) : UniqueAddress | Nil allocate, configuration_key : String configuration_key

Instance Method Detail

def allocate(shard_id : Int32, members : Array(Member), current_allocations : ShardAllocations) : UniqueAddress | Nil #

[View source]