Browse Source

Upped open file limit

Patrick Falls 12 years ago
parent
commit
a716fdd4fb
3 changed files with 7 additions and 5 deletions
  1. 3 1
      README.md
  2. 2 2
      benchmarker.py
  3. 2 2
      installer.py

+ 3 - 1
README.md

@@ -24,6 +24,8 @@ When propmted to create a security group for the instances, here are the ports t
 * 9000 (Play Framework)
 * 27017 (MongoDB)
 * 3000 (yesod)
+* 8000 (snap)
+
 
 #### 2. Setting up the servers
 
@@ -45,7 +47,7 @@ Next, we're going to setup the servers with all the necessary software:
 	./run-tests.py -s server-private-ip -c client-private-ip -i path-to-pem --install-software --list-tests
     source ~/.bash_profile
     # For your first time through the tests, set the ulimit for open files
-    ulimit -n 4096
+    ulimit -n 8192
     # Most software is installed autormatically by the script, but running the mongo command below from 
     # the install script was causing some errors. For now this needs to be run manually.
     cd installs/jruby-rack && rvm jruby-1.7.3 do jruby -S bundle exec rake clean gem SKIP_SPECS=true

+ 2 - 2
benchmarker.py

@@ -253,7 +253,7 @@ class Benchmarker:
   def __setup_server(self):
     try:
       subprocess.check_call("sudo sysctl -w net.core.somaxconn=1024".rsplit(" "))
-      subprocess.check_call("sudo -s ulimit -n 4096".rsplit(" "))
+      subprocess.check_call("sudo -s ulimit -n 8192".rsplit(" "))
       subprocess.check_call("sudo sysctl net.ipv4.tcp_tw_reuse=1".rsplit(" "))
       subprocess.check_call("sudo sysctl net.ipv4.tcp_tw_recycle=1".rsplit(" "))
       subprocess.check_call("sudo sysctl -w kernel.shmmax=134217728".rsplit(" "))
@@ -274,7 +274,7 @@ class Benchmarker:
     p = subprocess.Popen(self.ssh_string, stdin=subprocess.PIPE, shell=True)
     p.communicate("""
       sudo sysctl -w net.core.somaxconn=1024
-      sudo -s ulimit -n 4096
+      sudo -s ulimit -n 8192
       sudo sysctl net.ipv4.tcp_tw_reuse=1
       sudo sysctl net.ipv4.tcp_tw_recycle=1
       sudo sysctl -w kernel.shmmax=134217728

+ 2 - 2
installer.py

@@ -25,7 +25,7 @@ class Installer:
     self.__run_command("sudo apt-get install build-essential libpcre3 libpcre3-dev libpcrecpp0 libssl-dev zlib1g-dev python-software-properties unzip git-core libcurl4-openssl-dev libbz2-dev libmysqlclient-dev mongodb-clients libreadline6-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev libgdbm-dev ncurses-dev automake libffi-dev htop libtool bison libevent-dev libgstreamer-plugins-base0.10-0 libgstreamer0.10-0 liborc-0.4-0 libwxbase2.8-0 libwxgtk2.8-0 libgnutls-dev libjson0-dev libmcrypt-dev", True)
 
     self.__run_command("cp ../config/benchmark_profile ../../.bash_profile")
-    self.__run_command("sudo sh -c \"echo '*               soft    nofile          4096' >> /etc/security/limits.conf\"")
+    self.__run_command("sudo sh -c \"echo '*               soft    nofile          8192' >> /etc/security/limits.conf\"")
 
     #######################################
     # Languages
@@ -291,7 +291,7 @@ class Installer:
     ##############################
     yes | sudo apt-get update
     yes | sudo apt-get install build-essential git libev-dev libpq-dev libreadline6-dev
-    sudo sh -c "echo '*               soft    nofile          4096' >> /etc/security/limits.conf"
+    sudo sh -c "echo '*               soft    nofile          8192' >> /etc/security/limits.conf"
 
     ##############################
     # MySQL