How to tune nginx for 800-1200 concurrent connections?

Dennis Jacobfeuerborn dennisml at conversis.de
Sun Sep 25 19:20:30 UTC 2011


On 09/25/2011 06:45 PM, tsaavik wrote:
> Lots of directions to go with this question, here are 2.
>
> 1. The IO bound questions:
>     Your client_max_body_size has me wondering how big these images
> actually are. Whats the average size of these images?
>
>     A few lines of output from "dstat" or "vmstat 1" during peak output
> would be useful (or even "sar" if you run it).
>
>     If you are IO bound like I suspect, a reverse proxy via nginx's
> proxy_cache might be beneficial. You could just toss some 'hot' files
> into a ramdrive   (/dev/shm) and symlink them (ln -s) to test.

The page cache will do something like this transparently. If there's not 
enough ram left for the page cache to keep the files in memory then you 
also don't have enough ram to add a ram drive.

Regards,
   Dennis



More information about the nginx mailing list