Commit Graph

8 Commits (master)

Author SHA1 Message Date
Yikun Jiang e66443770d Per aggregate scheduling weight
This spec proposes to add ability to allow users to use
``Aggregate``'s ``metadata`` to override the global config options
for weights to achieve more fine-grained control over resource

blueprint: per-aggregate-scheduling-weight

Change-Id: I6e15c6507d037ffe263a460441858ed454b02504
4 years ago
Matt Riedemann 313becd5ff Cleanup soft (anti)affinity weight multiplier options
This resolves the TODO from Ocata change:


By adding a min=0.0 value to the soft affinity
weight multiplier configuration options.

It also removes the deprecated [DEFAULT] group
alias from Ocata change:


Change-Id: I79e191010adbc0ec0ed02c9d589106debbf90ea8
4 years ago
Yikun Jiang 020edde12f Change deprecated policies to policy
The policies is deprecated in
8fa70e5dfc, and is replaced with
policy field.

This patch changes deprecated policies to policy.

Change-Id: Iac3f666d53a48cdef26be4d17754fd0a481306a5
5 years ago
Erik Olof Gunnar Andersson 3508263f23 Remove remaning log translation in scheduler
* Removed log translation.
* Fixed minor misaligned log lines.

Change-Id: I04fb2726d5218d9f7762e843cfcd64d70c55adcb
5 years ago
Stephen Finucane cf8b1e52c8 conf: Attempt to resolve TODOs in
There are five options marked with TODOs:

* periodic_task_interval - negative values are valid, making the TODO
* host_subset_size - code was in-place to prevent negative values, so
  replace this code with a min parameter
* isolated_images - removing this option requires a little bit of
  thought and would likely require a blueprint. Retain this for now.
* max_instances_per_host, attestation_auth_timeout,
  soft_anti_affinity_weight_multiplier - support funky value ranges
  which, semantically speaking, shouldn't be allowed.  Start logging
  any "invalid" values.

Change-Id: I8871b628f0ab892830ceeede68db16948cb293c8
7 years ago
Alexis Lee 7d0381c91a conf: Group scheduler options
Move all scheduler options into their one of two groups. Many of the
options are simply renamed to remove their 'scheduler_' prefix, with
some exceptions:

* scheduler_default_filters -> enabled_filters
* scheduler_baremetal_default_filters -> baremetal_enabled_filters
* scheduler_driver_task_period -> periodic_task_interval
* scheduler_tracks_instance_changes -> track_instance_changes

Change-Id: I3f48e52815e80c99612bcd10cb53331a8c995fc3
Co-Authored-By: Stephen Finucane <>
Implements: blueprint centralize-config-options-ocata
7 years ago
yatin karel ecb24c5f1b Replace deprecated LOG.warn with LOG.warning
LOG.warn is deprecated. It is still used in few modules.
Replaced with non-deprecated LOG.warning.

Change-Id: Ia6acc11eca60c652844175a5742f626732e295e3
Closes-Bug: #1508442
7 years ago
Ildiko Vancsa 72ba18468e scheduler: add soft-(anti-)affinity weighers
ServerGroupSoftAffinityWeigher implements the soft-affinity
policy for server groups as it orders the hosts by the number
of instances running on them from the same group in decreasing

ServerGroupSoftAntiAffinityWeigher implements the
soft-anti-affinity policy for server groups as it orders the
hosts by the number of instances running on them from the same
group in increasing order.

Both weigher assumes the the RequestSpec object refers to a valid
InstanceGroup object which has a populated members field. This
will be provided by the subsequent patch.

New configuration options added:
 * soft_affinity_weight_multiplier
 * soft_anti_affinity_multiplier

Add docs about the new weigher classes and change the function
name 'weigh_object' to '_weigh_object' in the Weights section
to match the code.


Co-Authored-By: Balazs Gibizer <>

Implements: blueprint soft-affinity-for-server-group
Change-Id: I3f156d5e5df4d9642bb4b0ffac30a6288459ce61
8 years ago