nova/nova/cmd
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
..
__init__.py Eventlet monkey patching should be as early as possible 2019-03-25 09:22:01 +01:00
api.py Remove deprecated monkey_patch config options 2018-05-16 11:40:41 -04:00
api_metadata.py Remove deprecated monkey_patch config options 2018-05-16 11:40:41 -04:00
api_os_compute.py Remove deprecated monkey_patch config options 2018-05-16 11:40:41 -04:00
baseproxy.py Convert websocketproxy to use db for token validation 2018-05-03 09:57:56 -04:00
cells.py Remove deprecated monkey_patch config options 2018-05-16 11:40:41 -04:00
common.py Pass kwargs to exception to get better format of error message 2019-03-15 10:42:18 +08:00
compute.py Remove deprecated monkey_patch config options 2018-05-16 11:40:41 -04:00
conductor.py Remove deprecated monkey_patch config options 2018-05-16 11:40:41 -04:00
console.py Deprecate the nova-console service 2018-10-15 10:03:08 +01:00
consoleauth.py Deprecate the nova-consoleauth service 2018-05-03 10:02:29 -04:00
dhcpbridge.py Remove translation of log messages 2017-06-09 09:06:16 +00:00
manage.py Cache host to cell mapping in HostManager 2019-08-13 13:38:14 -04:00
network.py Remove deprecated monkey_patch config options 2018-05-16 11:40:41 -04:00
novncproxy.py console: Provide an RFB security proxy implementation 2018-01-12 10:00:42 +00:00
policy.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00
scheduler.py Remove deprecated monkey_patch config options 2018-05-16 11:40:41 -04:00
serialproxy.py config options: centralize section "serial_console" 2015-11-19 11:00:20 +01:00
spicehtml5proxy.py config options: centralize 'spice' options 2016-04-11 10:34:05 +00:00
status.py Handle templated cell mappings in nova-status 2019-03-05 09:00:20 -05:00
xvpvncproxy.py Pass config object to oslo_reports 2017-09-05 10:39:43 +00:00