Scaling Basics

9 Apr 2012

Ok, so here is the script for scaling a server.

sysctl -w net.core.somaxconn=40000 sysctl -w net.core.netdev_max_backlog=40000 ulimit -n 100000

And edit the open-file-limit for the user who runs Nginx.

Edit `/etc/security/limits.conf`, and add these lines:

* soft nofile 4096 * hard nofile 100000

And Do not forget about Passenger forking.

Give it a kudos