Setting binding profile for Trunk subports takes
time - for 125 subports rally CreateAndListTrunks
scenario [0] takes about 150 seconds. We need to
bump up the perfomance because large number of
subports is widly used in Kuryr deployments.
To achieve that I changed setting the binding
profile to be saved directly to the neutron DB.
Instead calling port_update I update only related
fields in OVN NorthBound DB rows. That gave performance
improvement in trunk port creation:
from 101 sec to 19.7 for 95%ile
from 99 sec to 14.9 for 50%ile
Reviewed: https:/ /review. opendev. org/682605 /git.openstack. org/cgit/ openstack/ networking- ovn/commit/ ?id=1e2e424f5d9 0be32edaf701d18 71701bf4b5d522
Committed: https:/
Submitter: Zuul
Branch: stable/rocky
commit 1e2e424f5d90be3 2edaf701d187170 1bf4b5d522
Author: Maciej Józefczyk <email address hidden>
Date: Thu Sep 5 09:29:45 2019 +0000
Set binding profile directly from OVNTrunkDriver
Setting binding profile for Trunk subports takes
time - for 125 subports rally CreateAndListTrunks
scenario [0] takes about 150 seconds. We need to
bump up the perfomance because large number of
subports is widly used in Kuryr deployments.
To achieve that I changed setting the binding
profile to be saved directly to the neutron DB.
Instead calling port_update I update only related
fields in OVN NorthBound DB rows. That gave performance
improvement in trunk port creation:
from 101 sec to 19.7 for 95%ile
from 99 sec to 14.9 for 50%ile
The same thing has been done for Trunk deletion.
[0] https:/ /github. com/openstack/ rally-openstack /blob/master/ rally_openstack /scenarios/ neutron/ trunk.py# L37
Closes-Bug: #1834637
Conflicts:
networking_ ovn/ml2/ trunk_driver. py
networking_ ovn/tests/ unit/ml2/ test_trunk_ driver. py
Change-Id: I020ba64618b2eb 76c627632b05758 96e88d1fcf8 973c0308b1b976a 065efd6ce3)
(cherry picked from commit 843200b9ce710d6