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 <gerry.kopec@windriver.com>
This commit is contained in:
Gerry Kopec 2019-08-01 00:13:04 -04:00
parent 8d39303a5b
commit 314890983d
1 changed files with 5 additions and 3 deletions

View File

@ -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