Quota code does not respect [api]/instance_list_per_project_cells
Bug #1878979 reported by
Mohammed Naser
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Mohammed Naser | ||
Stein |
Fix Released
|
Medium
|
melanie witt | ||
Train |
Fix Released
|
Medium
|
Elod Illes | ||
Ussuri |
Fix Released
|
Medium
|
Mohammed Naser |
Bug Description
The function which counts resources using the legacy method involves getting a list of all cell mappings assigned to a specific project:
This code can be very heavy on a database which contains a lot of instances (but not a lot of mappings), potentially scanning millions of rows to gather 1-2 cell mappings. In a single cell environment, it is just extra CPU usage with exactly the same outcome.
The [api]/instance_
However, the quota code does not implement it which means quota count take a big toll on the database server. We should ideally mirror the same behaviour in the quota code.
Changed in nova: | |
assignee: | nobody → Mohammed Naser (mnaser) |
status: | New → In Progress |
tags: | added: quotas |
Changed in nova: | |
importance: | Undecided → Medium |
To post a comment you must log in.
Patch proposed here, not sure why the bot didn't add it:
https:/ /review. opendev. org/728575