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
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: RFEs
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: RHOS Maint
QA Contact:
URL: https://blueprints.launchpad.net/nova...
Whiteboard: upstream_milestone_none upstream_stat...
Depends On:
Blocks:
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:
Environment:
Last Closed: 2015-03-19 17:26:17 UTC


Attachments (Terms of Use)

Description RHOS Integration 2014-02-15 05:01:34 UTC
Cloned from launchpad blueprint https://blueprints.launchpad.net/nova/+spec/filter-based-uptime.

Description:

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


Specification URL (additional information):

None


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