Tal Nisan has submitted this change and it was merged.
Change subject: core: improve balance selection of vm for migration
......................................................................
core: improve balance selection of vm for migration
Iterate over source hosts, to find vm that can be migrated,
without over utilize memory or CPU of destination host.
Before was selected some random source host, and from this host
was selected single vm with minimum cpu usage,
but maybe with big amount of memory usage and
so over utilizied destination host memory.
In result we had that balancing not migrate any of vms.
Change-Id: I67947fa4463b8bb12d04ee8f4126fa93683c9e14
Bug-Url:
https://bugzilla.redhat.com/1258780
Signed-off-by: Artyom Lukianov <alukiano(a)redhat.com>
(cherry picked from commit 737d14b5722a3cbbd5630e4d40e47e1f063e3e76)
---
M
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/scheduling/utils/FindVmAndDestinations.java
1 file changed, 21 insertions(+), 41 deletions(-)
Approvals:
Jenkins CI: Passed CI tests
Roy Golan: Verified; Looks good to me, approved
--
To view, visit
https://gerrit.ovirt.org/47170
To unsubscribe, visit
https://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I67947fa4463b8bb12d04ee8f4126fa93683c9e14
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.6.0
Gerrit-Owner: Roy Golan <rgolan(a)redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Roy Golan <rgolan(a)redhat.com>
Gerrit-Reviewer: Tal Nisan <tnisan(a)redhat.com>
Gerrit-Reviewer: automation(a)ovirt.org