Skip to content

Instantly share code, notes, and snippets.

@Gazler
Last active November 14, 2025 16:36
Show Gist options
  • Select an option

  • Save Gazler/c539b7ef443a6ea5a182 to your computer and use it in GitHub Desktop.

Select an option

Save Gazler/c539b7ef443a6ea5a182 to your computer and use it in GitHub Desktop.

Revisions

  1. Gazler revised this gist Apr 9, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion setup.sh
    Original file line number Diff line number Diff line change
    @@ -20,4 +20,4 @@ cd ..
    wget https://gist.github.com/Gazler/53b842764f778fe57757/raw/9509c3d980f13bbb739f4ae117dc84ef1d721076/phoenix.xml
    git clone -b bench https://github.com/Gazler/phoenix_chat_example.git
    echo "root soft nofile 4000000" >> /etc/security/limits.conf
    echo "root hard nofile 2400000" >> /etc/security/limits.conf
    echo "root hard nofile 4000000" >> /etc/security/limits.conf
  2. Gazler revised this gist Apr 9, 2016. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions setup.sh
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    sysctl -w fs.file-max=12000500
    sysctl -w fs.nr_open=20000500
    ulimit -n 20000000
    ulimit -n 4000000
    sysctl -w net.ipv4.tcp_mem='10000000 10000000 10000000'
    sysctl -w net.ipv4.tcp_rmem='1024 4096 16384'
    sysctl -w net.ipv4.tcp_wmem='1024 4096 16384'
    @@ -19,5 +19,5 @@ sudo make install
    cd ..
    wget https://gist.github.com/Gazler/53b842764f778fe57757/raw/9509c3d980f13bbb739f4ae117dc84ef1d721076/phoenix.xml
    git clone -b bench https://github.com/Gazler/phoenix_chat_example.git
    echo "root soft nofile 2000000" >> /etc/security/limits.conf
    echo "root hard nofile 2000000" >> /etc/security/limits.conf
    echo "root soft nofile 4000000" >> /etc/security/limits.conf
    echo "root hard nofile 2400000" >> /etc/security/limits.conf
  3. Gazler revised this gist Oct 26, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion setup.sh
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,7 @@ sysctl -w net.core.rmem_max=16384
    sysctl -w net.core.wmem_max=16384
    wget http://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb
    sudo dpkg -i erlang-solutions_1.0_all.deb
    sudo apt-get update
    yes | sudo apt-get update
    yes | sudo apt-get install elixir esl-erlang build-essential git gnuplot libtemplate-perl
    wget http://tsung.erlang-projects.org/dist/tsung-1.6.0.tar.gz
    tar -xvf tsung-1.6.0.tar.gz
  4. Gazler revised this gist Oct 26, 2015. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions setup.sh
    Original file line number Diff line number Diff line change
    @@ -20,5 +20,4 @@ cd ..
    wget https://gist.github.com/Gazler/53b842764f778fe57757/raw/9509c3d980f13bbb739f4ae117dc84ef1d721076/phoenix.xml
    git clone -b bench https://github.com/Gazler/phoenix_chat_example.git
    echo "root soft nofile 2000000" >> /etc/security/limits.conf
    echo "root hard nofile 2000000" >> /etc/security/limits.conf
    for i in `seq 1 17`; do ifconfig eth0:$i 10.0.0.$i up ; done
    echo "root hard nofile 2000000" >> /etc/security/limits.conf
  5. Gazler revised this gist Oct 23, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion setup.sh
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,7 @@ sysctl -w net.core.wmem_max=16384
    wget http://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb
    sudo dpkg -i erlang-solutions_1.0_all.deb
    sudo apt-get update
    yes | sudo apt-get install elixir esl-erlang build-essential git
    yes | sudo apt-get install elixir esl-erlang build-essential git gnuplot libtemplate-perl
    wget http://tsung.erlang-projects.org/dist/tsung-1.6.0.tar.gz
    tar -xvf tsung-1.6.0.tar.gz
    cd tsung-1.6.0/
  6. Gazler revised this gist Oct 20, 2015. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions setup.sh
    Original file line number Diff line number Diff line change
    @@ -21,3 +21,4 @@ wget https://gist.github.com/Gazler/53b842764f778fe57757/raw/9509c3d9
    git clone -b bench https://github.com/Gazler/phoenix_chat_example.git
    echo "root soft nofile 2000000" >> /etc/security/limits.conf
    echo "root hard nofile 2000000" >> /etc/security/limits.conf
    for i in `seq 1 17`; do ifconfig eth0:$i 10.0.0.$i up ; done
  7. Gazler revised this gist Oct 20, 2015. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions setup.sh
    Original file line number Diff line number Diff line change
    @@ -19,3 +19,5 @@ sudo make install
    cd ..
    wget https://gist.github.com/Gazler/53b842764f778fe57757/raw/9509c3d980f13bbb739f4ae117dc84ef1d721076/phoenix.xml
    git clone -b bench https://github.com/Gazler/phoenix_chat_example.git
    echo "root soft nofile 2000000" >> /etc/security/limits.conf
    echo "root hard nofile 2000000" >> /etc/security/limits.conf
  8. Gazler created this gist Oct 19, 2015.
    21 changes: 21 additions & 0 deletions setup.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    sysctl -w fs.file-max=12000500
    sysctl -w fs.nr_open=20000500
    ulimit -n 20000000
    sysctl -w net.ipv4.tcp_mem='10000000 10000000 10000000'
    sysctl -w net.ipv4.tcp_rmem='1024 4096 16384'
    sysctl -w net.ipv4.tcp_wmem='1024 4096 16384'
    sysctl -w net.core.rmem_max=16384
    sysctl -w net.core.wmem_max=16384
    wget http://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb
    sudo dpkg -i erlang-solutions_1.0_all.deb
    sudo apt-get update
    yes | sudo apt-get install elixir esl-erlang build-essential git
    wget http://tsung.erlang-projects.org/dist/tsung-1.6.0.tar.gz
    tar -xvf tsung-1.6.0.tar.gz
    cd tsung-1.6.0/
    ./configure
    make
    sudo make install
    cd ..
    wget https://gist.github.com/Gazler/53b842764f778fe57757/raw/9509c3d980f13bbb739f4ae117dc84ef1d721076/phoenix.xml
    git clone -b bench https://github.com/Gazler/phoenix_chat_example.git