Bug 1041246 - [RFE][nova]: Add "CPU&Memory Load Balance" Policy for OpenStack Cluster
Summary: [RFE][nova]: Add "CPU&Memory Load Balance" Policy for OpenStack Cluster
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: 2013-12-12 14:04 UTC by RHOS Integration
Modified: 2015-03-19 17:02 UTC (History)
2 users (show)

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


Attachments (Terms of Use)

Description RHOS Integration 2013-12-12 14:04:36 UTC
Cloned from launchpad blueprint https://blueprints.launchpad.net/nova/+spec/cpu-memory-load-balance.

Description:

Currently in OpenStack, it already used weight to implement stack and spread policy based on free memory, but did not implement “CPU Load Balance” and “Memory Load Balance” Policy and many customers want to use this policy to balance the load in their OpenStack cluster.

Solution Description (CPU Load Balance)
Create a new Weigher for CPU Load Balamce.
Take host_state.vcpus_used/vcpus_total as CPU usage for the hypervisor node and sort host according to this when deploy VM.
Very similar to nova/scheduler/weights/ram.py

Solution Description (Memory Load Balance)
Create a new Weigher for Memory Load Balamce.
Take used_ram_mb/total_usable_ram_mb as Memory usage for the hypervisor node and sort host according to this when deploy VM.
Very similar to nova/scheduler/weights/ram.py


Specification URL (additional information):

None


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