VPN-to-Router Associate/Disas Performance Improve 76/74176/4
authorKarthikeyan Krishnan <karthikeyangceb007@gmail.com>
Wed, 18 Jul 2018 06:18:46 +0000 (11:48 +0530)
committerSam Hague <shague@redhat.com>
Sun, 22 Jul 2018 21:00:03 +0000 (21:00 +0000)
commit2250dd11daa2cd96e304c0a7408f56f0f37f70d1
tree11a70a94ce370723dc081cd1ada52c2519f96df6
parenta6e16d1ed3effbaec4d98cdbc8a265794cb11074
VPN-to-Router Associate/Disas Performance Improve

Problem Description:
====================
When BGP-VPN is getting associated with router, FIB entries
are getting programmed very slow. This will cause the
performance of the VPN Manager.

Solution:
=========
Delay root cause: Each VPN interface update is taking 2 sec time to
remove the old VPN ID and update the new VPN ID and VPN service
unbind and bound to new VPN Instance.

To avoid each VPN interface update 2sec time delay, have moved
the method "handleVpnSwapForVpnInterface" processing logic into
JobCoordinator to process each VPN interface update in parallel.
This way overall FIB entry update is consuming less time compare
to without having this code change.

Issue: NETVIRT-1182

Change-Id: Ic17cba3e325a0c63fead9d30ec857c0e7eb8dcfc
Signed-off-by: Karthikeyan Krishnan <karthikeyangceb007@gmail.com>
neutronvpn/impl/src/main/java/org/opendaylight/netvirt/neutronvpn/NeutronBgpvpnChangeListener.java
vpnmanager/impl/src/main/java/org/opendaylight/netvirt/vpnmanager/VpnInterfaceManager.java