class
Movie::Cluster::WeightedLeastLoadedAllocation
Overview
Balances load relative to caller-supplied positive capacity weights.
Defined in:
movie/cluster/sharding/strategies.crConstructors
Instance Method Summary
- #allocate(shard_id : Int32, members : Array(Member), current_allocations : ShardAllocations) : UniqueAddress | Nil
- #configuration_key : String
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
Constructor Detail
Instance Method Detail
def allocate(shard_id : Int32, members : Array(Member), current_allocations : ShardAllocations) : UniqueAddress | Nil
#