The nova.scheduler.weights.metrics Module

Metrics Weigher. Weigh hosts by their metrics.

This weigher can compute the weight based on the compute node host’s various metrics. The to-be weighed metrics and their weighing ratio are specified in the configuration file as the followings:

[metrics] weight_setting = name1=1.0, name2=-1.0

The final weight would be name1.value * 1.0 + name2.value * -1.0.

class MetricsWeigher

Bases: nova.scheduler.weights.BaseHostWeigher

weight_multiplier()

Override the weight multiplier.

Previous topic

The nova.scheduler.weights.io_ops Module

Next topic

The nova.scheduler.weights.ram Module

Project Source

This Page