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.base_scheduler Module

The BaseScheduler is the base class Scheduler for creating instances across zones. There are two expansion points to this class for: 1. Assigning Weights to hosts for requested instances 2. Filtering Hosts based on required instance capabilities

class nova.scheduler.base_scheduler.BaseScheduler

Bases: nova.scheduler.abstract_scheduler.AbstractScheduler

Base class for creating Schedulers that can work across any nova deployment, from simple designs to multiply-nested zones.

filter_hosts(topic, request_spec, hosts=None)

Filter the full host list (from the ZoneManager)

weigh_hosts(topic, request_spec, hosts)

Derived classes may override this to provide more sophisticated scheduling objectives