Performance Issue on Nova API about Nova Quota Usage

Bug #1410003 reported by Henry
6
This bug affects 1 person
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_id}/limits/?tenant_id={tenant_id}
Refer to:
http://docs.openstack.org/api/openstack-compute/2/content/GET_os-used-limits-for-admins-v2_getCustomerLimits__v2__tenant_id__limits__tenant_id__ext-compute_limits_admins.html

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(/v2/​{tenant_id}​/servers/detail?all_tenant=True) which is use a "all_tenants" parameter to return the summary list we want.

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://github.com/henryzzq/nova/compare/stable/icehouse?expand=1

Also attached a design doc about this issue.

Revision history for this message
Henry (zhiqzhao) wrote :
Revision history for this message
Joe Gordon (jogo) wrote :

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)?

Changed in nova:
status: New → Confirmed
importance: Undecided → Wishlist
Revision history for this message
Henry (zhiqzhao) wrote :

Thanks Joe. I'm new comer for the community;) As your suggestion, I just create a blueprint for this one and link the bug-id.

https://blueprints.launchpad.net/nova/+spec/nova-quota-admin-api

I would expect someone could implement it more professional so not provide Assignee and Approver.

Changed in nova:
assignee: nobody → Pádraig Brady (p-draigbrady)
Joe Gordon (jogo)
tags: added: quotas
tags: added: low-hanging-fruit
Revision history for this message
Kun Huang (academicgareth) wrote :

@Pádraig Brady

are you working on this?

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/168644

Changed in nova:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by Joe Gordon (<email address hidden>) on branch: master
Review: https://review.openstack.org/168644
Reason: This review is > 4 weeks without comment and currently blocked by a core reviewer with a -2. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and contacting the reviewer with the -2 on this review to ensure you address their concerns.

Changed in nova:
assignee: Pádraig Brady (p-draigbrady) → nobody
Changed in nova:
status: In Progress → Confirmed
Revision history for this message
Markus Zoeller (markus_z) (mzoeller) wrote :

This wishlist bug has been open a year without any activity. I'm going to move it to "Opinion / Wishlist", which is an easily-obtainable queue of older requests that have come on.

Changed in nova:
status: Confirmed → Opinion
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.