You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by da...@apache.org on 2014/06/30 19:52:56 UTC

git commit: updated refs/heads/4.4 to d4a903f

Repository: cloudstack
Updated Branches:
  refs/heads/4.4 3142bb7f3 -> d4a903fd6


CLOUDSTACK-6997: Increase proc ip_conntrack_max

(cherry picked from commit 004d616322ba55d83407545f5b10c95ce48f75b5)


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

Branch: refs/heads/4.4
Commit: d4a903fd6e935b7a2166e71496945fb0e74c13c8
Parents: 3142bb7
Author: Jayapal <ja...@apache.org>
Authored: Mon Jun 30 16:06:56 2014 +0530
Committer: Daan Hoogland <da...@onecht.net>
Committed: Mon Jun 30 19:52:42 2014 +0200

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


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/d4a903fd/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"