Hide Forgot
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