Nova-scheduler-HostState
Revision as of 04:27, 8 June 2013 by Lianhao-lu (talk | contribs) (Created page with "== Nova Scheduler HostState Change Proposal== --~~~~ Created. Here we list the current HostState fields in nova scheduler, and proposed the potential changes required for the...")
Nova Scheduler HostState Change Proposal
--lianhao-lu (talk) 04:27, 8 June 2013 (UTC) Created.
Here we list the current HostState fields in nova scheduler, and proposed the potential changes required for the following blueprints:
- https://blueprints.launchpad.net/nova/+spec/utilization-aware-scheduling
- https://blueprints.launchpad.net/nova/+spec/generic-host-state-for-scheduler
Current HostState
Field | Read/Write | Initial Source | Description | Comment |
---|---|---|---|---|
host/nodename | n/a | __init__() | identify the host/node | |
capabilities | ro | compute node | dictionary contains the following keys:
|
compute node polls periodically. send it directly back to scheduler through RPC. |
service | ro | DB table - services | nova compute service | |
total_usable_disk_gb disk_mb_used free_ram_mb free_disk_mb vcpus_total vcpus_used |
rw | DB table - comupte_nodes | compute node periodically polls and save into DB. modified by scheduler according to scheduling situation. | |
num_instances num_io_ops |
rw | DB table - comupte_node_stats | statistics | compute node periodically polls and save into DB. modified by scheduler according to scheduling situation. |
num_instances_by_project num_instances_by_os_type vm_states task_states |
rw | DB table - comupte_node_stats | number of instances by project_id, os_type, vm_state, task_state respectively | compute node periodically polls and save into DB. modified by scheduler according to scheduling situation. |
limits | rw | from schedulers | resource oversubscription value | used by compute node when building new instance |
updated | rw | last update timestamp |