We had a lot of 'get_node_networks' calls for the same node. This
function call is too expensive and takes a lot of time. It cause some
serious problems on scale, since its call number was increasing with
a progression. Since now, it's predictable and takes only 3 * N times.
Reviewed: https:/ /review. openstack. org/207997 /git.openstack. org/cgit/ stackforge/ fuel-web/ commit/ ?id=31ca9f3ffc0 f4e3457595970d3 e2f532526b704c
Committed: https:/
Submitter: Jenkins
Branch: master
commit 31ca9f3ffc0f4e3 457595970d3e2f5 32526b704c
Author: Igor Kalnitsky <email address hidden>
Date: Fri Jul 31 18:10:49 2015 +0300
Decrease amount of 'get_node_networks` calls
We had a lot of 'get_node_networks' calls for the same node. This
function call is too expensive and takes a lot of time. It cause some
serious problems on scale, since its call number was increasing with
a progression. Since now, it's predictable and takes only 3 * N times.
Here's the quick comparison:
NODES | WAS | NOW ------- ------- -
-
6 | 216 | 18 // was: 6.88s, now: 0.62s
5 | 155 | 15
4 | 104 | 12
3 | 63 | 9
Partial-Bug: #1479090
Change-Id: Ia8ea44149fbb3c 90aa015ad5ac0f0 3f4cd9d33ec
Signed-off-by: Igor Kalnitsky <email address hidden>