usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From toddn...@apache.org
Subject [15/27] incubator-usergrid git commit: Turned down defaults on rest threading
Date Wed, 12 Nov 2014 19:11:56 GMT
Turned down defaults on rest threading


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

Branch: refs/heads/two-dot-o
Commit: c31e1b336648c73a374ba6fe875b5cd8c97455c9
Parents: 1ea42f8
Author: Todd Nine <tnine@apigee.com>
Authored: Mon Nov 10 16:21:08 2014 -0700
Committer: Todd Nine <tnine@apigee.com>
Committed: Mon Nov 10 16:21:08 2014 -0700

----------------------------------------------------------------------
 .../src/main/dist/init_instance/init_rest_server.sh          | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/c31e1b33/stack/awscluster/src/main/dist/init_instance/init_rest_server.sh
----------------------------------------------------------------------
diff --git a/stack/awscluster/src/main/dist/init_instance/init_rest_server.sh b/stack/awscluster/src/main/dist/init_instance/init_rest_server.sh
index 7b6571c..924fb49 100644
--- a/stack/awscluster/src/main/dist/init_instance/init_rest_server.sh
+++ b/stack/awscluster/src/main/dist/init_instance/init_rest_server.sh
@@ -63,8 +63,8 @@ cd /usr/share/usergrid/init_instance
 # set Tomcat memory and threads based on instance type
 # use about 70% of RAM for heap
 export NOFILE=150000
-export TOMCAT_CONNECTIONS=10000
-export ACCEPT_COUNT=1600
+#export TOMCAT_CONNECTIONS=10000
+export ACCEPT_COUNT=100
 export NR_OPEN=1048576
 export FILE_MAX=761773
 
@@ -102,7 +102,7 @@ case `(curl http://169.254.169.254/latest/meta-data/instance-type)` in
 'c3.xlarge' )
     # total of 7.5g
     export TOMCAT_RAM=4096m
-    export TOMCAT_THREADS=7000
+    export TOMCAT_THREADS=1000
 ;;
 'c3.2xlarge' )
     # total of 15g
@@ -117,7 +117,7 @@ esac
 
 
 sed -i.bak "s/Xmx128m/Xmx${TOMCAT_RAM} -Xms${TOMCAT_RAM} -Dlog4j\.configuration=file:\/usr\/share\/usergrid\/lib\/log4j\.properties/g"
/etc/default/tomcat7
-sed -i.bak "s/<Connector/<Connector maxThreads=\"${TOMCAT_THREADS}\" acceptCount=\"${ACCEPT_COUNT}\"
maxConnections=\"${TOMCAT_CONNECTIONS}\"/g" /var/lib/tomcat7/conf/server.xml
+sed -i.bak "s/<Connector/<Connector maxThreads=\"${TOMCAT_THREADS}\" acceptCount=\"${ACCEPT_COUNT}\"
maxConnections=\"${TOMCAT_THREADS}\"/g" /var/lib/tomcat7/conf/server.xml
 
 
 #Append our java opts for secret key


Mime
View raw message