openstack_dashboard.usage.quotas.tenant_quota_usages fetches to many quotas and degrades performances
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
High
|
Akihiro Motoki |
Bug Description
When looking at the keypair dashboard, or router dashboard, etc... openstack_
It slows down panels very heavily.
I did a quick and dirty test on some dashboards (with a local horizon targeted on a production environment's APIs) by modifying the tenant_quota_usages function to retrieve only the desired quotas and usages for the page I need, and it turns out that rendering a page is between 3 to five time faster. Just enormous.
We really do not need to fetch all usages and quotas when retrieving keypairs, etc...
This function should accept extra parameters to get only the desired quotas and usages.
However this is a huge task because it requires modifying ALL dashboards.
OPENSTACK_
The solution is e.g. not fetching network quotas and usages on the volumes dashboard or cinder quotas and usages on the keypairs dashboard, etc...
Quick tests show that the performance impact is simply more than tremendously gigantic. e.g.: My "routers" page with the current function takes 20 to 30 seconds to render (just catastrophic), and only 3 to 5 seconds If I get only the the desired quotas and usages required only for this dashboard.
description: | updated |
Changed in horizon: | |
status: | New → Confirmed |
importance: | Undecided → High |
tags: | added: performance |
tags: | added: ocata-backport-potential |
Changed in horizon: | |
assignee: | nobody → Akihiro Motoki (amotoki) |
milestone: | none → pike-2 |
Changed in horizon: | |
milestone: | pike-2 → pike-3 |
This current bug should be taken into account for this blueprint : https:/ /blueprints. launchpad. net/horizon/ +spec/make- quotas- great-again
tenant_quota_usages should not fetch ALL quotas and usages but only the ones needed for the dashboard calling it.