cinder.scheduler.weights.volume_number module

cinder.scheduler.weights.volume_number module

class VolumeNumberWeigher

Bases: cinder.scheduler.weights.BaseHostWeigher

Weigher that weighs hosts by volume number in backends.

The default is to spread volumes across all hosts evenly. If you prefer stacking, you can set the volume_number_multiplier option to a positive number and the weighing has the opposite effect of the default.


Override the weight multiplier.

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.