nova/nova/scheduler
Hans Lindgren c126d36640 Make scheduler filters/weighers only load once
Right now, filters/weighers are instantiated on every invocation of the
scheduler. This is both time consuming and unnecessary. In cases where
a filter/weigher tries to be smart and store/cache something in between
invocations this actually prohibits that.

This change make base filter/weigher functions take objects instead of
classes and then let schedulers create objects only once and then reuse
them.

This fixes a known bug in trusted_filter that tries to cache things.

Related to blueprint scheduler-optimization

Change-Id: I3174ab7968b51c43c0711033bac5d4bc30938b95
Closes-Bug: #1223450
2014-12-09 18:58:49 +01:00
..
client Use oslo.utils 2014-10-06 21:41:17 -04:00
filters Merge "Only filter once for trusted filters" 2014-12-05 16:14:08 +00:00
weights Remove unused oslo.config import 2014-11-13 15:59:16 +01:00
__init__.py Improve hacking rule to avoid author markers 2014-05-05 14:35:20 +02:00
caching_scheduler.py Add a caching scheduler driver 2014-02-26 13:53:07 +00:00
chance.py Use oslo.i18n 2014-07-18 14:28:09 -04:00
driver.py Replacement `_` on `_LE` in all LOG.exception 2014-11-20 11:19:09 +02:00
filter_scheduler.py Replacement `_` on `_LI` in all LOG.info - part 1 2014-11-20 10:19:17 +02:00
host_manager.py Make scheduler filters/weighers only load once 2014-12-09 18:58:49 +01:00
ironic_host_manager.py Remove old Baremetal Host Manager 2014-11-24 13:21:16 +01:00
manager.py object-ify flavors manager side of the RPC 2014-12-04 18:59:53 +00:00
rpcapi.py object-ify flavors manager side of the RPC 2014-12-04 18:59:53 +00:00
scheduler_options.py Replacement `_` on `_LE` in all LOG.exception 2014-11-20 11:19:09 +02:00
utils.py Scheduler: return a namedtuple from _get_group_details 2014-12-01 06:25:50 -08:00