The nova.scheduler.weights.disk Module

Disk Weigher. Weigh hosts by their disk usage.

The default is to spread instances across all hosts evenly. If you prefer stacking, you can set the ‘disk_weight_multiplier’ option to a negative number and the weighing has the opposite effect of the default.

class DiskWeigher

Bases: nova.scheduler.weights.BaseHostWeigher

minval = 0
weight_multiplier()

Override the weight multiplier.

Previous topic

The nova.scheduler.weights.affinity Module

Next topic

The nova.scheduler.weights.io_ops Module

Project Source

This Page