The performance of quota usage sync in Neutron driver should be enchanced

Bug #1583967 reported by Chaoyi Huang on 2016-05-20
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

Currently the quota usage is sync-ed through list of all resources of these project and then sum. This handling's performance is not good, especially if multiple quota-usage task executed concurrently, will heavily impact the performance of Neutron for many queries in parallel

                networks = self.neutron.list_networks(**opts)['networks']
                subnets = self.neutron.list_subnets(**opts)['subnets']
                ports = self.neutron.list_ports(**opts)['ports']
                routers = self.neutron.list_routers(**opts)['routers']
                floatingips = self.neutron.list_floatingips(

                usages['network'] = len(networks)
                usages['subnet'] = len(subnets)
                usages['port'] = len(ports)
                usages['router'] = len(routers)
                usages['floatingip'] = len(floatingips)

After Neutron client (or OpenStackClient) support limit calling to get the usage directly, the code here should be improved.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers