Updated Branches:
  refs/heads/master 683193714 -> 89dee2750

CLOUDSTACK-1414: Reduce arping time to nearly 0

In the previous version it would take at least 1 seconds for arping, and it
would be big if the VR has more than 30 IPs - our biglock default timeout is 30
seconds.

Fix it by send out two arping immediately, and then sleep 1 second for router to
update arp cache.


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/89dee275
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/89dee275
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/89dee275

Branch: refs/heads/master
Commit: 89dee2750330d4e19a3f2142ce0b33b00e22c053
Parents: 6831937
Author: Sheng Yang <[email protected]>
Authored: Tue Feb 26 12:25:30 2013 -0800
Committer: Sheng Yang <[email protected]>
Committed: Tue Feb 26 12:39:15 2013 -0800

----------------------------------------------------------------------
 .../root/redundant_router/arping_gateways.sh.templ |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/89dee275/patches/systemvm/debian/config/root/redundant_router/arping_gateways.sh.templ
----------------------------------------------------------------------
diff --git 
a/patches/systemvm/debian/config/root/redundant_router/arping_gateways.sh.templ 
b/patches/systemvm/debian/config/root/redundant_router/arping_gateways.sh.templ
index 176bce2..931c959 100644
--- 
a/patches/systemvm/debian/config/root/redundant_router/arping_gateways.sh.templ
+++ 
b/patches/systemvm/debian/config/root/redundant_router/arping_gateways.sh.templ
@@ -22,6 +22,8 @@ do
     while read line
     do
         ip=`echo $line|cut -d " " -f 2|cut -d "/" -f 1`
-        arping -I $i -A $ip -c 2 >> [RROUTER_LOG] 2>&1
+        arping -I $i -A $ip -c 1 >> [RROUTER_LOG] 2>&1
+        arping -I $i -A $ip -c 1 >> [RROUTER_LOG] 2>&1
     done < /tmp/iplist_$i
 done < /tmp/iflist
+sleep 1

Reply via email to