nova/nova/scheduler
Matt Riedemann 677c95280b Cache host to cell mapping in HostManager
If the instances per host are not cached in the HostManager
we lookup the HostMapping per candidate compute node during
each scheduling request to get the CellMapping so we can target
that cell database to pull the instance uuids on the given host.

For example, if placement returned 20 compute node allocation
candidates and we don't have the instances cached for any of those,
we'll do 20 queries to the API DB to get host mappings.

We can improve this by caching the host to cell uuid after the first
lookup for a given host and then after that, get the CellMapping
from the cells cache (which is a dict, keyed by cell uuid, to the
CellMapping for that cell).

Change-Id: Ic6b1edfad2e384eb32c6942edc522ee301123cbc
Related-Bug: #1737465
(cherry picked from commit 3a69fdb333)
2019-08-13 13:38:14 -04:00
..
client Change a log level for overwriting allocation 2019-04-16 13:34:47 +00:00
filters Remove the CachingScheduler 2018-10-18 17:55:36 -04:00
weights Per aggregate scheduling weight 2019-01-21 11:48:44 +08:00
__init__.py Improve hacking rule to avoid author markers 2014-05-05 14:35:20 +02:00
driver.py Remove the CachingScheduler 2018-10-18 17:55:36 -04:00
filter_scheduler.py Fix WeighedHost logging regression 2019-03-05 17:16:23 -05:00
host_manager.py Cache host to cell mapping in HostManager 2019-08-13 13:38:14 -04:00
manager.py Cache host to cell mapping in HostManager 2019-08-13 13:38:14 -04:00
request_filter.py Honor availability_zone hint via placement 2018-05-22 08:56:50 -07:00
rpcapi.py Use long_rpc_timeout in select_destinations RPC call 2018-11-20 09:03:53 -05:00
utils.py Remove redundant group host setup 2019-06-25 11:23:28 +00:00