Anyone using nginx? I'm serving some 10-30mb files at peak times up to 250-300 requests per second, if I'm reading these RDD'd /status logs correctly. These are on VPS servers, which may mean some network settings aren't available.
It mostly works, but sometimes the massive simultaneous connections overwhelms the system, and I'm wondering if anyone here is doing something like that and has suggestions for nginx.conf or sysctl.conf.
Most info out there is on using nginx as a proxy, and tuning the proxy settings. I'm not using it as a proxy, I'm using nginx as a web server.
Turning sendfile on seemed to help dramatically. Setting sendfile_max_chunk to 1m helped too. Right now I'm looking at the TCP settings like tcp_fin_timeout to see if optimizations can be had at that level. There's a lot of conflicting info out there so I figured if someone had it dialed in, they'd be lurking here