This Page

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

The nova.scheduler.zone Module

Availability Zone Scheduler implementation

class nova.scheduler.zone.ZoneScheduler

Bases: nova.scheduler.driver.Scheduler

Implements Scheduler as a random node selector.

hosts_up_with_zone(context, topic, zone)

Return the list of hosts that have a running service for topic and availability zone (if defined).

schedule(context, topic, *_args, **_kwargs)

Picks a host that is up at random in selected availability zone (if defined).