getting all flavors is too inefficient
Bug #1206762 reported by
ruandongdong
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Medium
|
tcs_openstack_group |
Bug Description
when i get all flavors by 'nova flavor-list',it is too inefficient.
For more details:
i create 1600 flavors to test, it will takes 78 seconds. as we all know that 1600 kinds flavors are not much at all for we create instances with them.
In fact,it is inefficient to get extra_specs for every flavor, and then add the extra_specs information to flavor. so, it will query db 1600 times. why not get them only once from db.
description: | updated |
description: | updated |
Changed in nova: | |
importance: | Undecided → Medium |
status: | New → In Progress |
assignee: | nobody → Aditi Raveesh (aditirav) |
Changed in nova: | |
status: | In Progress → Triaged |
importance: | Medium → Undecided |
assignee: | Aditi Raveesh (aditirav) → nobody |
importance: | Undecided → Medium |
Changed in nova: | |
assignee: | nobody → tcs_openstack_group (tcs-openstack-group) |
Changed in nova: | |
status: | Incomplete → Invalid |
To post a comment you must log in.
I'm not sure why someone would create 1600 separate flavors in production or if this is actually unreasonable performance.