The cinder.scheduler.weights.capacity Module

Weighers that weigh hosts by their capacity, including following two weighers:

  1. Capacity Weigher. Weigh hosts by their available capacity.

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

  1. Allocated Capacity Weigher. Weigh hosts by their allocated capacity.

The default behavior is to place new volume to the host allocated the least space. This weigher is intended to simulate the behavior of SimpleScheduler. If you prefer to place volumes to host allocated the most space, you can set the ‘allocated_capacity_weight_multiplier’ option to a positive number and the weighing has the opposite effect of the default.

class AllocatedCapacityWeigher

Bases: cinder.openstack.common.scheduler.weights.BaseHostWeigher

class CapacityWeigher

Bases: cinder.openstack.common.scheduler.weights.BaseHostWeigher

Previous topic

The cinder.scheduler.simple Module

Next topic

The cinder.scheduler.weights.chance Module

This Page