Performance Issue on Nova API about Nova Quota Usage
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Opinion
|
Wishlist
|
Unassigned |
Bug Description
We have a requirement to collect quota usage information at project level with admin role account. We noticed that the only api we can work with currently is to get them one by one:
Request: GET /v2/{tenant_
Refer to:
http://
In production env, we maintained 1K projects at least. So with this API, we have to get the summary with 1K http requests.(O(n), n is the number of projects).
This would cause low performance if we check the quota usages frequently. I would hope there's an API similar to the way we did for instances summary(
That would totally solve the performance issue we met(O(n) -> O(1)). I just wrote a prototype to get this down and hope it would be helpful to describe the issue. Code link is here:
https:/
Also attached a design doc about this issue.
Changed in nova: | |
assignee: | nobody → Pádraig Brady (p-draigbrady) |
tags: | added: quotas |
tags: | added: low-hanging-fruit |
Changed in nova: | |
assignee: | Pádraig Brady (p-draigbrady) → nobody |
Changed in nova: | |
status: | In Progress → Confirmed |
Sounds like a reasonable feature request. Would you like to implement this or just file a backlog spec (http:// specs.openstack .org/openstack/ nova-specs/ specs/backlog/ index.html)?