gantt/nova
Chris Behrens c728941c3d Refactor scheduling weights.
This makes scheduling weights more plugin friendly and creates shared
code that can be used by the host scheduler as well as the future cells
scheduler.  Weighing classes can now be specified much like you can
specify scheduling host filters.

The new weights code reverses the old behavior where lower weights win.
Higher weights are now the winners.

The least_cost module and configs have been deprecated, but are still
supported for backwards compatibility.  The code has moved to
nova.scheduler.weights.least_cost and been modified to work with the new
loadable-class code.  If any of the least_cost related config options are
specified, this least_cost weigher will be used.

For those not overriding the default least_cost config values, the new
RamWeigher class will be used.  The default behavior of the RamWeigher
class is the same default behavior as the old least_cost module.

The new weights code introduces a new config option
'scheduler_weight_classes' which is used to specify which weigher classes
to use.  The default is 'all classes', but modified if least_cost
deprecated config options are used, as mentioned above.

The RamWeigher class introduces a new config option
'ram_weight_multiplier'.  The default of 1.0 causes weights equal to the
free memory in MB to be returned, thus hosts with more free memory are
preferred (causes equal spreading).  Changing this value to a negative
number such as -1.0 will cause reverse behavior (fill first).

DocImpact

Change-Id: I1e5e5039c299db02f7287f2d33299ebf0b9732ce
2012-11-14 19:04:17 +00:00
..
common Switch from FLAGS to CONF in misc modules 2012-11-04 21:46:35 +00:00
openstack Update uuidutils from openstack common. 2012-11-12 18:50:12 -05:00
rootwrap Use env to set environ when starting dnsmasq 2012-10-30 21:30:58 -04:00
scheduler Refactor scheduling weights. 2012-11-14 19:04:17 +00:00
testing Clarify dangerous use of exceptions in unit tests 2012-09-20 19:37:34 +00:00
tests Refactor scheduling weights. 2012-11-14 19:04:17 +00:00
__init__.py Remove outdated moduleauthor tags 2012-10-01 15:25:47 -07:00
block_device.py Switch from FLAGS to CONF in misc modules 2012-11-04 21:46:35 +00:00
exception.py Add missing exception NetworkDuplicated 2012-11-12 14:19:19 -05:00
filters.py Refactor scheduling filters 2012-11-14 19:04:12 +00:00
flags.py Switch from FLAGS to CONF in misc modules 2012-11-04 21:46:35 +00:00
loadables.py Add module for loading specific classes 2012-11-14 19:01:57 +00:00
manager.py Updated scheduler and compute for multiple capabilities. 2012-11-10 10:20:45 +09:00
notifications.py Switch from FLAGS to CONF in misc modules 2012-11-04 21:46:35 +00:00
policy.py Switch from FLAGS to CONF in misc modules 2012-11-04 21:46:35 +00:00
quota.py Remove nova-volume DB 2012-11-08 21:31:31 +00:00
service.py Switch from FLAGS to CONF in misc modules 2012-11-04 21:46:35 +00:00
test.py Isolate tests from the environment variable http_proxy. 2012-11-14 07:03:25 +00:00
utils.py Remove gen_uuid() 2012-11-14 22:16:24 +09:00
weights.py Refactor scheduling weights. 2012-11-14 19:04:17 +00:00
wsgi.py Switch from FLAGS to CONF in misc modules 2012-11-04 21:46:35 +00:00