Currently to obtain image and flavor data,
compute agent always calls nova api, even for the same id of image/flavor.
In order to reduce the number of nova-client call, caches for image and flavor
are introduced.
The caches only live in a local scope of _with_flavor_and_image: created every
single polling interval and thrown away at the end of the interval.
Although the caches only live in a short time, they are effective because same
flavors are used many times in one compute-node in typical use cases.
Reviewed: https:/ /review. openstack. org/98301 /git.openstack. org/cgit/ openstack/ ceilometer/ commit/ ?id=4863fc95bcb bb6f7dbe7e48ef1 3f370456611738
Committed: https:/
Submitter: Jenkins
Branch: master
commit 4863fc95bcbbb6f 7dbe7e48ef13f37 0456611738
Author: Rikimaru Honjo <email address hidden>
Date: Tue Jun 10 18:16:21 2014 +0900
Adds caches for image and flavor in compute agent
Currently to obtain image and flavor data,
compute agent always calls nova api, even for the same id of image/flavor.
In order to reduce the number of nova-client call, caches for image and flavor
are introduced.
The caches only live in a local scope of _with_flavor_ and_image: created every
single polling interval and thrown away at the end of the interval.
Although the caches only live in a short time, they are effective because same
flavors are used many times in one compute-node in typical use cases.
Change-Id: I63b6a59f06be49 11f39073e34cfc3 a2a7b832c51
Closes-bug: #1293337