class Movie::Cluster::RoleAwareAllocation

Overview

Eligibility decorator that requires every configured role before invoking the underlying placement algorithm.

Defined in:

movie/cluster/sharding/strategies.cr

Constructors

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

Constructor Detail

def self.new(delegate : ShardAllocationStrategy, roles : Array(String)) #

[View source]

Instance Method Detail

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

[View source]
def configuration_key : String #

[View source]