abstract class
Movie::Cluster::ShardAllocationStrategy
- Movie::Cluster::ShardAllocationStrategy
- Reference
- Object
Overview
Chooses an owner for a shard from the currently eligible membership. Implementations are invoked in shard-id order when a complete allocation plan is built, so strategies may use the allocations already selected.
Direct Known Subclasses
- Movie::Cluster::LeastLoadedAllocation
- Movie::Cluster::RendezvousAllocation
- Movie::Cluster::RoleAwareAllocation
- Movie::Cluster::WeightedLeastLoadedAllocation
Defined in:
movie/cluster/sharding/strategies.crInstance Method Summary
- #allocate(shard_id : Int32, members : Array(Member), current_allocations : ShardAllocations) : UniqueAddress | Nil
- #configuration_key : String
Instance Method Detail
abstract
def allocate(shard_id : Int32, members : Array(Member), current_allocations : ShardAllocations) : UniqueAddress | Nil
#