From 314890983ddc00c1ade39822a20eae935bab2e7b Mon Sep 17 00:00:00 2001 From: Gerry Kopec Date: Thu, 1 Aug 2019 00:13:04 -0400 Subject: [PATCH] Update nova overrides to enable affinity weigher Affinity weigher is required to support soft-anti-affinity and soft-affinity server group policies in nova. Set to a relatively high mulitplier of 20 to ensure that this criteria predominates the host selection. Adjust other weigher multipliers accordingly: io_ops: remove override to let it use default value of -1. Old -5 setting was related to discontinued stx-nova patch in previous stx release. cpu & build_failure: disable similar to ram, disk & pci. Also enable shuffle_best_same_weighed_hosts to randomize host selection where weights are equal across multiple hosts. Change-Id: I28f92a7c703d1b78d5cab93418359ce164e61066 Closes-Bug: 1834255 Signed-off-by: Gerry Kopec --- .../stx-openstack-helm/manifests/manifest.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/kubernetes/applications/stx-openstack/stx-openstack-helm/stx-openstack-helm/manifests/manifest.yaml b/kubernetes/applications/stx-openstack/stx-openstack-helm/stx-openstack-helm/manifests/manifest.yaml index 35d2187579..50372f5750 100644 --- a/kubernetes/applications/stx-openstack/stx-openstack-helm/stx-openstack-helm/manifests/manifest.yaml +++ b/kubernetes/applications/stx-openstack/stx-openstack-helm/stx-openstack-helm/manifests/manifest.yaml @@ -988,6 +988,8 @@ data: notifications: notification_format: unversioned filter_scheduler: + build_failure_weight_multiplier: 0.0 + cpu_weight_multiplier: 0.0 disk_weight_multiplier: 0.0 enabled_filters: - RetryFilter @@ -1000,11 +1002,11 @@ data: - ServerGroupAffinityFilter - ServerGroupAntiAffinityFilter - PciPassthroughFilter - io_ops_weight_multiplier: -5.0 pci_weight_multiplier: 0.0 ram_weight_multiplier: 0.0 - soft_affinity_weight_multiplier: 0.0 - soft_anti_affinity_weight_multiplier: 0.0 + shuffle_best_same_weighed_hosts: true + soft_affinity_weight_multiplier: 20.0 + soft_anti_affinity_weight_multiplier: 20.0 scheduler: workers: 1 discover_hosts_in_cells_interval: 30