Bug 1043233 - Balancing cluster doesn't add VM's Predicted CPU load into acceptable hosts load
Summary: Balancing cluster doesn't add VM's Predicted CPU load into acceptable hosts load
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 3.3.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 3.4.0
Assignee: Gilad Chaplik
QA Contact: Lukas Svaty
URL:
Whiteboard: sla
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-15 08:34 UTC by Gilad Chaplik
Modified: 2016-02-10 20:14 UTC (History)
11 users (show)

Fixed In Version: org.ovirt.engine-root-3.4.0-16
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
oVirt Team: SLA
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 22454 0 None None None Never
oVirt gerrit 26151 0 ovirt-engine-3.4 MERGED core: loadbalancing: prevent VM bounces between hosts Never

Description Gilad Chaplik 2013-12-15 08:34:36 UTC
Description of problem:
When balancing a cluster, the balancing logic should return a VM and acceptable hosts, while filtering those hosts the scheduler doesn't take into account the predicted VM CPU load.

How reproducible:
100%

Steps to Reproduce:
0. have a 2 similar hosts cluster and enable load balancing in cluster policy.
1. create a VM that consume all host CPU resources.


Actual results:
The vm bounces between 2 hosts

Expected results:
The scheduler should identify, that migrating the VM will cause the host to exceed its CPU load, and shouldn't balance that VM.

Additional info:
predictedVmCpu = (vm.usageCpuPercent * vm.numOfCpus) / host.effectiveCpuCores

Comment 1 Eyal Edri 2014-02-10 09:45:56 UTC
moving to 3.3.2 since 3.3.1 was built and moved to QE.

Comment 3 Lukas Svaty 2014-04-30 14:14:04 UTC
verified in av8, no more bouncing VMs

event:
2014-Apr-30, 16:09
Used CPU of host 10.34.62.204 [96%] exceeded defined threshold [95%].

log:
2014-04-30 16:12:02,449 INFO  [org.ovirt.engine.core.bll.scheduling.PolicyUnitImpl] (DefaultQuartzScheduler_Worker-41) VdsLoadBalancer: vm selection - selected vm: stressed-vm, cpu: 12. => no migration

Comment 4 Itamar Heim 2014-06-12 14:11:30 UTC
Closing as part of 3.4.0


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