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

Scheduler Service

class nova.scheduler.manager.SchedulerManager(scheduler_driver=None, *args, **kwargs)

Bases: nova.manager.Manager

Chooses a host to run instances on.

get_host_list(context=None)

Get a list of hosts from the ZoneManager.

get_scheduler_rules(context=None, *args, **kwargs)

Ask the driver how requests should be made of it.

get_zone_capabilities(context=None)

Get the normalized set of capabilites for this zone.

get_zone_list(context=None)

Get a list of zones from the ZoneManager.

periodic_tasks(context=None)

Poll child zones periodically to get status.

select(context=None, *args, **kwargs)

Select a list of hosts best matching the provided specs.

show_host_resources(context, host)

Shows the physical/usage resource given by hosts.

Parameters:
  • context – security context
  • host – hostname
Returns:

example format is below. {‘resource’:D, ‘usage’:{proj_id1:D, proj_id2:D}} D: {‘vcpus’: 3, ‘memory_mb’: 2048, ‘local_gb’: 2048,

‘vcpus_used’: 12, ‘memory_mb_used’: 10240, ‘local_gb_used’: 64}

update_service_capabilities(context=None, service_name=None, host=None, capabilities=None)

Process a capability update from a service node.