Net-list is very slow under metaplugin
Bug #1267290 reported by
Itsuro Oda
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Undecided
|
Itsuro Oda |
Bug Description
If there are many networks when using metaplugin, net-list (GET networks API)
takes very long time.
For example: (showing hardware spec etc. is omitted since it is relative comparison.)
--- 200 networks, openvswitch plugin used natively
$ time neutron net-list
...snip
real 0m2.007s
user 0m0.428s
sys 0m0.100s
---
--- 200 openvswitch networks, under metaplugin
$ time neutron net-list
...snip
real 0m7.700s
user 0m0.472s
sys 0m0.072s
---
Note that the quantum-server wastes a lot of cpu usage too.
tags: | added: metaplugin |
Changed in neutron: | |
milestone: | none → icehouse-rc1 |
Changed in neutron: | |
status: | Fix Committed → Fix Released |
Changed in neutron: | |
milestone: | icehouse-rc1 → 2014.1 |
To post a comment you must log in.
Investigation: get_network( )
The reason of this problem is that the metaplgin calls plugin.
for each network in the metaplugin's get_networks().
(i.e. if there are 200 networks, get_network() is called 200 times.)
Proposed fix:
Change to call target plugin's get_networks for each taget plugin.
I think it is available to use hook routines.