L3 agent doing an extreme number of calls pr loop iteration
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
New
|
Undecided
|
Unassigned |
Bug Description
So what happens each time the agent loops it does:
1. do_single_loop()
2. list_networks() to get the networks which is fine in _fetch_
3. Then it does list_routers() which is fair enough again in do_single_loop() which it uses in a for r in <routers>... loop which is where the bad thing happens
4. Now at this point we're basically doing a vast amount of API calls pr router that we iterate over pr poll.
Now for me I got about 10 networks with routers attached to a external network and it seems to be doing 2-3 api calls pr router. This is causing keystone and quantum to do make the database query amount go up to about ~150 queries in average pr second doing "status" in the mysql client.
This is not just hitting the Quantum API but each poll makes a API call out to keystone as well.
Maybe this should be optimized?
yep, you can look at https:/ /bugs.launchpad .net/quantum/ +bug/1037246.
IMO, this problem can be resolved when that bug are fixed.