Scheduler Service
Bases: nova.manager.Manager
Chooses a host to run instances on.
Tries to call schedule_prep_resize on the driver. Sets instance vm_state to ACTIVE on NoHostFound Sets vm_state to ERROR on other exceptions
Tries to call schedule_run_instance on the driver. Sets instance vm_state to ERROR on exceptions
Shows the physical/usage resource given by hosts.
Parameters: |
|
---|---|
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}
|
Scheduler base class that all Schedulers should inherit from
Bases: object
The base class that all Scheduler classes should inherit from.
Return the list of hosts that have a running service for topic.
Manager calls this so drivers can perform periodic tasks.
Must override schedule_run_instance method for scheduler to work.
Must override select_destinations method.
Returns: | A list of dicts with ‘host’, ‘nodename’ and ‘limits’ as keys that satisfies the request_spec and filter_properties. |
---|
On run_instance failure, update instance state and send notifications.
Clear the host and node - set the scheduled_at field of an Instance.
Returns: | An Instance with the updated fields set properly. |
---|
Chance (Random) Scheduler implementation
Bases: nova.scheduler.driver.Scheduler
Implements Scheduler as a random node selector.
Create and run an instance or instances.
Selects random destinations.