Nginx VS Nginx + Varnish
Dave Cheney
dave at cheney.net
Fri Oct 10 03:55:08 MSD 2008
From my experience, 60 small static files / second used 2% cpu on a
OS X Xeon Server. Are you suspecting that your server is being limited
in some way ?
Cheers
Dave
On 10/10/2008, at 7:50 AM, Gen Gennix wrote:
> Hey,
>
> Do you think it's a good idea to add Varnish to Nginx to serve static
> files?
>
>
> I'm running a dedicated server with 2GB RAM and a pentium dual core
> E2180 for static files.
>
> I'm only using Nginx 0.6.32 on Centos 5/linux 2.6.24: no database, no
> php, no gzip mod...
>
> Nginx sends 60 images/seconde (max 100 images/sec) among 3.200.000
> jpeg
> images (one image = 5-10kB).
>
>
> Thanks in advance!
>
>
>
> My Nginx file :
> --------------------------------------------------
> user nginx nginx;
> worker_processes 4;
>
>
> events
> {
> worker_connections 1024;
> }
>
>
> http
> {
> include mime.types;
> default_type application/octet-stream;
>
> access_log off;
>
> sendfile on;
> tcp_nopush on;
> tcp_nodelay on;
>
> client_body_timeout 5;
> client_header_timeout 5;
> keepalive_timeout 5 5;
> send_timeout 5;
>
>
> gzip off;
>
> server
> {
> listen 80;
>
> root /home/www;
>
> expires 90d;
>
> # CSS & Javascript files configuration
> location ~* ^.+.(css|js)$
> {
> gzip_static on;
> gzip_http_version 1.1;
> gzip_proxied off;
> gzip_min_length 0;
> gzip_disable "MSIE [1-6]\.";
> gzip_vary off;
> }
> }
> }
> --
> Posted via http://www.ruby-forum.com/.
>
More information about the nginx
mailing list