Oved Ourfali has posted comments on this change.
Change subject: core: adding HA score with proper scheduling policies
......................................................................
Patch Set 4:
(2 comments)
See my comments about some of your comments.
Will address all the rest of your comments.
....................................................
File
backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/VdsUpdateRunTimeInfo.java
Line 1567:
Line 1568: if (StringUtils.equals(HOSTED_ENGINE_VM_NAME,
vmNameOnHost)) {
Line 1569: vmStatic.setName(vmNameOnHost);
Line 1570: vmStatic.setOrigin(OriginType.HOSTED_ENGINE);
Line 1571:
vmStatic.setMigrationSupport(MigrationSupport.IMPLICITLY_NON_MIGRATABLE);
UpdateVmCommand is blocked for non-engine-managed VMs, so we're good here.
Line 1572: } else {
Line 1573:
vmStatic.setName(String.format(EXTERNAL_VM_NAME_FORMAT, vmNameOnHost));
Line 1574: vmStatic.setOrigin(OriginType.EXTERNAL);
Line 1575: }
....................................................
File packaging/dbscripts/upgrade/03_03_0990_add_ha_policy_units.sql
Line 1:
The upgrades are in different locations, so prefer to split those.
Line 2: INSERT INTO policy_units (id, name, is_internal,
custom_properties_regex, type, enabled, description) VALUES
('e659c871-0bf1-4ccc-b748-f28f5d08dffd', 'HA', true, NULL, 0, true, 'Runs the
hosted engine VM only on hosts with a positive score');
Line 3: INSERT INTO policy_units (id, name, is_internal,
custom_properties_regex, type, enabled, description) VALUES
('98e92667-6161-41fb-b3fa-34f820ccbc4b', 'HA', true, NULL, 1, true, 'Weights
hosts according to their HA score');
Line 4:
Line 5: INSERT INTO cluster_policy_units (cluster_policy_id, policy_unit_id,
filter_sequence, factor) VALUES ('20d25257-b4bd-4589-92a6-c4c5c5d3fd1a',
'e659c871-0bf1-4ccc-b748-f28f5d08dffd', 0, 0);
--
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: 4
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