You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ya...@apache.org on 2013/02/26 21:38:57 UTC

git commit: refs/heads/4.1 - CLOUDSTACK-1414: Reduce arping time to nearly 0

Updated Branches:
  refs/heads/4.1 df8c7506f -> 7d370f2eb


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/7d370f2e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/7d370f2e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/7d370f2e

Branch: refs/heads/4.1
Commit: 7d370f2eb77388aa47d3b7573ac226ab56b131b0
Parents: df8c750
Author: Sheng Yang <sh...@citrix.com>
Authored: Tue Feb 26 12:25:30 2013 -0800
Committer: Sheng Yang <sh...@citrix.com>
Committed: Tue Feb 26 12:25:30 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/7d370f2e/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