The nova.scheduler.weights.affinity Module

Affinity Weighers. Weigh hosts by the number of instances from a given host.

AffinityWeigher implements the soft-affinity policy for server groups by preferring the hosts that has more instances from the given group.

AntiAffinityWeigher implements the soft-anti-affinity policy for server groups by preferring the hosts that has less instances from the given group.

class ServerGroupSoftAffinityWeigher

Bases: nova.scheduler.weights.affinity._SoftAffinityWeigherBase

policy_name = 'soft-affinity'
warning_sent = False
weight_multiplier()
class ServerGroupSoftAntiAffinityWeigher

Bases: nova.scheduler.weights.affinity._SoftAffinityWeigherBase

policy_name = 'soft-anti-affinity'
warning_sent = False
weight_multiplier()

Previous topic

The nova.scheduler.utils Module

Next topic

The nova.scheduler.weights.disk Module

Project Source

This Page