I am building the backend for a turn based gamed. My experience is mostly with a lamp stack; I've dabbled in nginx on a node side project.
I just read Scaling PHP Applications by Stephen Corona of Twit Pic. He recommends an nginx server over apache. He says that his ubuntu machine has 32768-61000 ports open.
On AWS do I need to modify my security to group to allow access to those ports? How do I ensure nginx is taking full advantage of this configuration?
Update:
I anticipate most of my requests being at port 443, which is why I was confused about his recommendation for opening more ports.
This is the reccomendation he makes
net.ipv4.ip_local_port_range
ip_local_port_range defines the range of usable ports on your system. On my stock ubuntu installation, it’s set to 32768-61000. Increase the range to allow for more connections. The number of avaliable ports limits the number of simultanious open connections. Remember, even after a connection is closed it still eats a port in the TIME_WAIT state (though we mitigate this with some settings below).
sysctl-wnet.ipv4.ip_local_port_range="10000 65535"
vi /etc/sysctl.d/haproxy-tuning.conf
net.ipv4.ip_local_port_range=10000 65535