cinder.scheduler.weights.stochastic module

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: BaseWeightHandler

get_weighed_objects(weigher_classes, obj_list, weighing_properties)

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

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.