Martin Peřina has posted comments on this change. Change subject: core: Refresh number of in/out migrations in HostMonitoring ......................................................................
Patch Set 1: (2 comments) https://gerrit.ovirt.org/#/c/38325/1/backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/HostMonitoring.java File backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/HostMonitoring.java: Line 762: } Line 763: } Line 764: Line 765: void refreshInOutMigrations() { Line 766: if (!vdsManager.getRefreshStatistics()) { > surprisingly the if in refreshCommitedMemory() was very recently added by S I will try to investigate this Line 767: return; Line 768: } Line 769: Line 770: int incomingMigrations = 0; Line 769: Line 770: int incomingMigrations = 0; Line 771: int outgoingMigrations = 0; Line 772: Line 773: for (Pair<VM, VmInternalData> pair : vdsManager.getLastVmsList()) { > not sure i see the difference, So we have following options: 1. Calculate in/out migrations in 3.6 cluster hosts (patch for VDSM). We may display in/out migrations for hosts in 3.6 clusters and total number of migrations for hosts in <= 3.5 clusters 2. For hosts in 3.6 cluster display in/out migrations count from VDSM and for hosts <= 3.5 clusters we will calculate in/out counts in HostMonitoring -> complicated :-( 3. Calculate in/out migrations in HostMonitoring for all hosts (this patch) So how will we proceed? Line 774: VmInternalData vdsmVm = pair.getSecond(); Line 775: if (vdsmVm != null) { Line 776: if (vdsmVm.getVmDynamic().getStatus() == VMStatus.MigratingFrom) { Line 777: outgoingMigrations++; -- To view, visit https://gerrit.ovirt.org/38325 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I1a1ef858a6faf861678245cc02006f40dd230602 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Martin Peřina <[email protected]> Gerrit-Reviewer: Martin Peřina <[email protected]> Gerrit-Reviewer: Michal Skrivanek <[email protected]> Gerrit-Reviewer: Omer Frenkel <[email protected]> Gerrit-Reviewer: Oved Ourfali <[email protected]> Gerrit-Reviewer: [email protected] Gerrit-Reviewer: oVirt Jenkins CI Server Gerrit-HasComments: Yes _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
