cinder.scheduler.weights.stochastic module

Stochastic weight handler

This weight handler differs from the default weight handler by giving every pool a chance to be chosen where the probability is proportional to each pools’ weight.

class StochasticHostWeightHandler(namespace)

Bases: cinder.scheduler.base_weight.BaseWeightHandler

get_weighed_objects(weigher_classes, obj_list, weighing_properties)

Return a sorted (descending), normalized list of WeighedObjects.