diff options
author | Dan Smith <danms@us.ibm.com> | 2013-02-05 12:36:52 -0500 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2013-02-06 01:27:49 +0000 |
commit | 1b65fb08f2845fe1ab525709d7a5d76f91985cea (patch) | |
tree | 2b9371a7138e0202f865c28f2e00859111a762a7 /nova/exception.py | |
parent | bfd295daed4b22cd0716973bee33cffdaaeae931 (diff) | |
download | nova-1b65fb08f2845fe1ab525709d7a5d76f91985cea.tar.gz nova-1b65fb08f2845fe1ab525709d7a5d76f91985cea.tar.xz nova-1b65fb08f2845fe1ab525709d7a5d76f91985cea.zip |
Refactor instance usage notifications for compute manager
This patch makes compute manager call notify_usage_exists() via the
conductor instead of directly, avoiding the direct database access
required to fetch bandwidth information. I initially just added
a notify_bw_usage() method to conductor, which just handled the
bandwidth part (which is the database hit). However, the metadata
payload part may be depended upon by custom stuff for periodic
notifications, so copying all that stuff as well made it a bunch
of duplicated stuff. Thus, I decided to just make it a direct proxy
for the compute_utils method.
Note that this is a bit of a departure from the previous pattern of
just proxying db interfaces in conductor, but I think the simplicity
gain is worth it.
Related to blueprint no-db-compute
Change-Id: I09f2652d4903f4d6036c6e3d74db063952341856
Diffstat (limited to 'nova/exception.py')
0 files changed, 0 insertions, 0 deletions