class
Movie::Cluster::RoleAwareAllocation
Overview
Eligibility decorator that requires every configured role before invoking the underlying placement algorithm.
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
#