Doron Fediuck has submitted this change and it was merged.
Change subject: Samples: add memory based load-balancing sample module
......................................................................
Samples: add memory based load-balancing sample module
Adds a comprehensive example of a memory filter.
Logic stages:
- find the host with the least amount of free memory
- check what is the maximum vm size it can pass to
the other hosts without overloading them
- find a vm it can pass that is small enough to
run on one of the other servers.
If safe_selection = true, return the smallest vm
else try and find one that will solve the
overutilization in one migration
Change-Id: I1b4a41064631912f5624723327a2ff5ebf158d5c
Signed-off-by: Noam Slomianko <nslomian(a)redhat.com>
---
A plugins/examples/host_memory_balance.py
1 file changed, 165 insertions(+), 0 deletions(-)
Approvals:
Doron Fediuck: Verified; Looks good to me, approved
--
To view, visit
http://gerrit.ovirt.org/19934
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I1b4a41064631912f5624723327a2ff5ebf158d5c
Gerrit-PatchSet: 8
Gerrit-Project: ovirt-scheduler-proxy
Gerrit-Branch: master
Gerrit-Owner: Noam Slomianko <nslomian(a)redhat.com>
Gerrit-Reviewer: Doron Fediuck <dfediuck(a)redhat.com>
Gerrit-Reviewer: Gilad Chaplik <gchaplik(a)redhat.com>
Gerrit-Reviewer: Martin Sivák <msivak(a)redhat.com>
Gerrit-Reviewer: Noam Slomianko <nslomian(a)redhat.com>
Gerrit-Reviewer: oVirt Jenkins CI Server