Doron Fediuck has posted comments on this change. Change subject: core: Clean pending memory and CPUs only during init ......................................................................
Patch Set 3: (2 comments) .................................................... File backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/ResourceManager.java Line 92: Line 93: // Is there any VM that is not fully Up or fully Down on this host? Line 94: boolean runningVmsInTransition = false; Line 95: Line 96: List<VM> _vms = DbFacade.getInstance().getVmDao().getAllRunningForVds(_vds.getId()); This should be done only once, so speed is not the issue here. Line 97: for (VM vm : _vms) { Line 98: if (vm.isRunning() && vm.getStatus() != VMStatus.Up) { Line 99: runningVmsInTransition = true; Line 100: break; Line 111: _saveVdsDynamic = true; Line 112: } Line 113: Line 114: if (_saveVdsDynamic) { Line 115: DbFacade.getInstance().getVdsDynamicDao().update(_vds.getDynamicData()); Same here- this is only when you init the engine. Line 116: } Line 117: } Line 118: Line 119: // Populate the VDS dictionary -- To view, visit http://gerrit.ovirt.org/20172 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I84c2ba29368c0b6bc400087512d7b3a68c5c8f5c Gerrit-PatchSet: 3 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Martin Sivák <msi...@redhat.com> Gerrit-Reviewer: Doron Fediuck <dfedi...@redhat.com> Gerrit-Reviewer: Gilad Chaplik <gchap...@redhat.com> Gerrit-Reviewer: Liran Zelkha <lzel...@redhat.com> Gerrit-Reviewer: Martin Sivák <msi...@redhat.com> Gerrit-Reviewer: Michal Skrivanek <michal.skriva...@redhat.com> Gerrit-Reviewer: Omer Frenkel <ofren...@redhat.com> Gerrit-Reviewer: Roy Golan <rgo...@redhat.com> Gerrit-Reviewer: oVirt Jenkins CI Server Gerrit-HasComments: Yes _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches