Change in ovirt-engine[master]: core: do not monitor pool with no prestarted vms

ahadas at redhat.com ahadas at redhat.com
Mon May 16 11:47:06 UTC 2016


Arik Hadas has submitted this change and it was merged.

Change subject: core: do not monitor pool with no prestarted vms
......................................................................


core: do not monitor pool with no prestarted vms

Apparently, VmPoolCommandBase#getNumOfPrestartedVmsInPool is a costly method.
This patch reduces calls to this method by filtering VM-pools with no
prestarted-VMs from being monitored in VmPoolMonitor.

Change-Id: I9a0b8ce069fc24a32ca0beaffa93757e032d0181
Signed-off-by: Arik Hadas <ahadas at redhat.com>
---
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/VmPoolMonitor.java
1 file changed, 7 insertions(+), 4 deletions(-)

Approvals:
  Shahar Havivi: Looks good to me, approved
  Jenkins CI: Passed CI tests
  Shmuel Leib Melamud: Looks good to me, but someone else must approve
  Arik Hadas: Verified



-- 
To view, visit https://gerrit.ovirt.org/57502
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I9a0b8ce069fc24a32ca0beaffa93757e032d0181
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Arik Hadas <ahadas at redhat.com>
Gerrit-Reviewer: Arik Hadas <ahadas at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Shahar Havivi <shavivi at redhat.com>
Gerrit-Reviewer: Shmuel Leib Melamud <smelamud at redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>



More information about the Engine-commits mailing list