The nova.scheduler.weights.ram Module

RAM Weigher. Weigh hosts by their RAM usage.

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

class RAMWeigher

Bases: nova.scheduler.weights.BaseHostWeigher

minval = 0
weight_multiplier()

Override the weight multiplier.

Previous topic

The nova.scheduler.weights.metrics Module

Next topic

The nova.service Module

Project Source

This Page