Inefficient host_status lookup when listing servers with details (regression)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Matt Riedemann | ||
Stein |
Fix Committed
|
Low
|
Matt Riedemann |
Bug Description
We have a performance regression since Stein [1] when listing servers with details concerning the host_status field. The code used to rely on this method [2] to cache the host status information per host when iterating over a list of instances but now it fetches it per host per instance in the view builder [3]. Granted by default policy this would only affect performance for an admin, but if I'm an admin listing 1000 servers across all tenants using "nova list --all-tenants" (which is going to use a microversion high enough to hit this) it could be a noticeable slow down compared to before Stein.
[1] https:/
[2] https:/
[3] https:/
Changed in nova: | |
status: | New → Triaged |
summary: |
Inefficient host_status lookup when listing servers with details + (regression) |
Changed in nova: | |
assignee: | nobody → Matt Riedemann (mriedem) |
Changed in nova: | |
assignee: | Matt Riedemann (mriedem) → Eric Fried (efried) |
Changed in nova: | |
assignee: | Eric Fried (efried) → Matt Riedemann (mriedem) |
https:/ /review. opendev. org/#/c/ 663502/ should probably be reverted when fixing this bug.