The cinder.scheduler.weights.volume_number Module

Weighers that weigh hosts by volume number in backends:

  1. Volume Number Weigher. Weigh hosts by their volume number.

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.

class VolumeNumberWeigher

Bases: cinder.scheduler.weights.BaseHostWeigher

weight_multiplier()

Override the weight multiplier.

Previous topic

The cinder.scheduler.weights.stochastic Module

Next topic

The cinder.service Module

Project Source

This Page