Previous topic

The nova.scheduler.filters.trusted_filter Module

Next topic

The nova.scheduler.host_manager Module

This Page

Psst... hey. You're reading the latest content, but it might be out of sync with code. You can read Nova 2011.2 docs or all OpenStack docs too.

The nova.scheduler.filters.type_filter Module

class TypeAffinityFilter

Bases: nova.scheduler.filters.BaseHostFilter

TypeAffinityFilter doesn’t allow more then one VM type per host.

Note: this works best with compute_fill_first_cost_fn_weight (dispersion) set to 1 (-1 by default).

host_passes(host_state, filter_properties)

Dynamically limits hosts to one instance type

Return False if host has any instance types other then the requested type. Return True if all instance types match or if host is empty.