Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1065594 - [RFE][nova]: Filter based on the load averages
Summary: [RFE][nova]: Filter based on the load averages
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: RFEs
Version: unspecified
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: ---
Assignee: RHOS Maint
QA Contact:
Whiteboard: upstream_milestone_none upstream_stat...
Depends On:
TreeView+ depends on / blocked
Reported: 2014-02-15 05:01 UTC by RHOS Integration
Modified: 2015-03-19 17:26 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Last Closed: 2015-03-19 17:26:17 UTC
Target Upstream Version:

Attachments (Terms of Use)

Description RHOS Integration 2014-02-15 05:01:34 UTC
Cloned from launchpad blueprint


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

  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/ a new method calculate_loadavg() that returns based
on the output of driver.get_host_uptime() from compute/ a well
formatted tuple of load averages between 0 to 1 for each periods. We also need
to update api/openstack/compute/contrib/ to take care of this new

  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

Specification URL (additional information):


Note You need to log in before you can comment on or make changes to this bug.