Scheduler Service
Bases: nova.manager.Manager
Chooses a host to run instances on.
Get a list of hosts from the HostManager.
Currently unused, but left for backwards compatibility.
Get the normalized set of capabilities for this zone.
Has been unused since pre-essex, but remains for rpc API 1.X completeness.
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}
|
Process a capability update from a service node.