nova/nova/scheduler
Matt Riedemann 91f5af7ee7 Trim the fat on HostState.instances
The only in-tree filters that rely on HostState.instances
are the affinity filters (and one of the weighers). And they
don't even look at the values in the HostState.instances dict,
just the keys (which are the instance uuids for the instances
on the host).

So rather than pull the full instance objects, we can just get
the list of instance uuids off the host and fake out the object.

Custom filters/weighers will still be able to lazy-load fields
on the Instance objects in HostState.instances if needed, but
it will mean a performance penalty due to the round trip to the
database per instance, per host. Out of tree filters/weighers
are encouraged to be contributed upstream.

Related to blueprint put-host-manager-instance-info-on-a-diet

Related-Bug: #1737465

Change-Id: I766bb5645e3b598468d092fb9e4f18e720617c52
2018-06-01 12:14:23 -04:00
..
client mirror nova host aggregate members to placement 2018-05-30 12:45:20 -04:00
filters Merge "Added ability to configure default architecture for ImagePropertiesFilter" 2018-05-15 05:26:46 +00:00
weights Remove remaning log translation in scheduler 2018-05-09 18:43:11 -07:00
__init__.py Improve hacking rule to avoid author markers 2014-05-05 14:35:20 +02:00
caching_scheduler.py Mark Chance and Caching schedulers as deprecated 2017-08-09 10:53:53 -07:00
chance.py Modify select_destinations() to return objects and alts 2017-12-07 15:01:13 +00:00
driver.py Remove [scheduler]/host_manager config option 2018-05-03 09:39:26 -04:00
filter_scheduler.py Fix interpretation of max_attempts for scheduling alternates 2018-05-18 09:06:07 -07:00
host_manager.py Trim the fat on HostState.instances 2018-06-01 12:14:23 -04:00
manager.py Remove remaning log translation in scheduler 2018-05-09 18:43:11 -07:00
request_filter.py Honor availability_zone hint via placement 2018-05-22 08:56:50 -07:00
rpcapi.py Modify select_destinations() to return objects and alts 2017-12-07 15:01:13 +00:00
utils.py Granular requests to get_allocation_candidates 2018-05-18 21:43:02 +00:00