Oved Ourfali has posted comments on this change.
Change subject: core: adding HA score with proper scheduling policies
......................................................................
Patch Set 7:
(1 comment)
....................................................
File
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/scheduling/policyunits/HostedEngineHAClusterWeightPolicyUnit.java
Line 33: if (isHostedEngine) {
Line 34: int maxHaScore =
hosts.get(0).getHighlyAvailableScore();
Line 35: for (VDS host : hosts) {
Line 36: if (host.getHighlyAvailableScore() > maxHaScore) {
Line 37: maxHaScore = host.getHighlyAvailableScore();
Okay.
For now it is relevant only here so putting it as a constant.
If relevant in the future then let's define that externally in the config.
What's the max score? 2400?
Line 38: }
Line 39: }
Line 40: // If the max HA score is zero then we just fill the
default score.
Line 41: // That shouldn't really happen here, as zero or
negative score hosts were already filtered out
--
To view, visit http://gerrit.ovirt.org/20018
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I24879ed64cab829969556fd71786b32d3aaaf0c7
Gerrit-PatchSet: 7
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Oved Ourfali <[email protected]>
Gerrit-Reviewer: Doron Fediuck <[email protected]>
Gerrit-Reviewer: Gilad Chaplik <[email protected]>
Gerrit-Reviewer: Greg Padgett <[email protected]>
Gerrit-Reviewer: Martin Sivák <[email protected]>
Gerrit-Reviewer: Omer Frenkel <[email protected]>
Gerrit-Reviewer: Oved Ourfali <[email protected]>
Gerrit-Reviewer: Roy Golan <[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