cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jaya...@apache.org
Subject git commit: updated refs/heads/master to d5e686f
Date Tue, 01 Jul 2014 05:00:13 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/master 4a3b92f66 -> d5e686f2e


CLOUDSTACK-6997: Increase proc ip_conntrack_max


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

Branch: refs/heads/master
Commit: d5e686f2ecd0d3322e69770919b650957324be03
Parents: 4a3b92f
Author: Jayapal <jayapal@apache.org>
Authored: Mon Jun 30 16:06:56 2014 +0530
Committer: Jayapal <jayapal@apache.org>
Committed: Tue Jul 1 10:29:46 2014 +0530

----------------------------------------------------------------------
 systemvm/patches/debian/config/etc/rc.local | 11 +++++++++++
 1 file changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/d5e686f2/systemvm/patches/debian/config/etc/rc.local
----------------------------------------------------------------------
diff --git a/systemvm/patches/debian/config/etc/rc.local b/systemvm/patches/debian/config/etc/rc.local
index 6119497..fd3488e 100755
--- a/systemvm/patches/debian/config/etc/rc.local
+++ b/systemvm/patches/debian/config/etc/rc.local
@@ -14,5 +14,16 @@ do
    service $svc stop
 done
 
+CMDLINE=$(cat /var/cache/cloud/cmdline)
+router=$(echo "$CMDLINE" | grep -o  type=router)
+vpcrouter=$(echo "$CMDLINE" | grep -o  type=vpcrouter)
+
+if [ "$router" != "" ] ||  [ "$vpcrouter" != "" ]
+then
+   echo 1000000 > /proc/sys/net/ipv4/netfilter/ip_conntrack_max
+   echo 1000000 > /proc/sys/net/netfilter/nf_conntrack_max
+   echo 1000000 > /proc/sys/net/nf_conntrack_max
+fi
+
 date > /var/cache/cloud/boot_up_done
 logger -t cloud "Boot up process done"


Mime
View raw message