For each polling intervals, Compute Agent first acquire the list of VM using instance_get_all_by_host method in nova_client.py.
Then, for each VMs, the details of flavor and image are acquired by _with_flavor_and_image method.
Required time for above operation increases proportional to the number of VMs.
There might be more efficient way of collecting information,
with which the required time can be sub-linear to the number of VMs (not always, of course. Worst case remains linear).
Ideas are:
- It is not necessary to acquire all the information every time.
Utilize some kind of cache and differential acquisition may help.
- Reduce the number of nova's client call:
Is it possible to acquire several information at once?
Fix proposed to branch: master /review. openstack. org/98301
Review: https:/