Filter based on the load averages

Registered by Sahid Orentino

This filter will use the command uptime and will provides an option to choice a
period between 1, 5, and 15 minutes.

Why:
  During a scheduling it could be useful to exclude a host that have a too
heavy load and the command uptime (available in all linux system)
can return a load averages of the system in different periods.

About the implementation:
  Currently all drivers (libvirt, xenapi, vmware) supports a method
get_host_uptime that returns the output of the command 'uptime'. We
have to add in compute/stats.py a new method calculate_loadavg() that returns based
on the output of driver.get_host_uptime() from compute/ressource_tracker.py a well
formatted tuple of load averages between 0 to 1 for each periods. We also need
to update api/openstack/compute/contrib/hypervisors.py to take care of this new
field.

  The implementation will be divided in several parts:
    * Add to host_manager the possibility to get the loads_averages
    * Implement the filter based on this new property
    * Implement the filter with a per-aggregate configuration

Blueprint information

Status:
Complete
Approver:
Russell Bryant
Priority:
Undefined
Drafter:
Sahid Orentino
Direction:
Needs approval
Assignee:
Sahid Orentino
Definition:
Obsolete
Series goal:
None
Implementation:
Unknown
Milestone target:
None
Completed by
Sahid Orentino

Related branches

Sprints

Whiteboard

Thread on openstack-dev: http://lists.openstack.org/pipermail/openstack-dev/2014-February/027155.html

Gerrit topic: https://review.openstack.org/#q,topic:bp/filter-based-uptime,n,z

Addressed by: https://review.openstack.org/73664
    [do not merge] Adds load_averages to a hypervisors

Addressed by: https://review.openstack.org/74014
    Adds a system load averages monitor

Removed from next, as next is now reserved for near misses from the last milestone --johnthetubaguyThread on openstack-dev: http://lists.openstack.org/pipermail/openstack-dev/2014-February/027155.html

Gerrit topic: https://review.openstack.org/#q,topic:bp/filter-based-uptime,n,z

Addressed by: https://review.openstack.org/73664
    [do not merge] Adds load_averages to a hypervisors

Addressed by: https://review.openstack.org/74014
    Adds a system load averages monitor

Removed from next, as next is now reserved for near misses from the last milestone --johnthetubaguy

Marking this blueprint as definition: Drafting. If you are still working on this, please re-submit via nova-specs. If not, please mark as obsolete, and add a quick comment to describe why. --johnthetubaguy (20th April 2014)

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.