class
Movie::Cluster::AllocationPlanner
- Movie::Cluster::AllocationPlanner
- Reference
- Object
Overview
Builds the deterministic target allocation selected by a strategy, then advances an existing allocation by the number of moves permitted by the independent rebalance policy. Shards on ineligible owners always move.
Defined in:
movie/cluster/sharding/strategies.crConstructors
Instance Method Summary
- #initial(members : Array(Member)) : ShardAllocations
- #reconcile(current : ShardAllocations, members : Array(Member)) : AllocationPlanResult
Constructor Detail
def self.new(shard_count : Int32, allocation : ShardAllocationStrategy, rebalance : RebalancePolicy)
#