Add a new ImagePropertiesWeigher

This weigher will check how many instances in the host have the image
properties that are requested and will prefer by default to pack
instances with the same properties.

Implements blueprint: image-metadata-props-weigher

Change-Id: I3bfed44bd089c6b226d13c3ac4a0003411737cbd
This commit is contained in:
Sylvain Bauza
2025-01-27 11:35:31 +01:00
committed by Sean Mooney
parent 420050cf33
commit acd6c733c6
7 changed files with 321 additions and 0 deletions
@@ -0,0 +1,14 @@
---
features:
- |
A new `ImagePropertiesWeigher` has been added. It will compare the number
of image properties of the image being booted for each of the host with how
many existing instances use them. By default this weigher is enabled but
with a value of 0.0 for
`[filter_scheduler]/image_props_weight_multiplier` which
won't modify the existing scheduling behavior.
If you want to pack instances having the same image properties on the same
hosts, modify `image_props_weight_multiplier` to a positive value. If you
want to spread instances with the same properties around all hosts, then
please modify `image_props_weight_multiplier` to a negative value.