16 messages in ru.sysoev.nginxRe: Nginx VS Nginx + Varnish
FromSent OnAttachments
Gen GennixOct 9, 2008 1:49 pm 
Dave CheneyOct 9, 2008 4:54 pm 
Robert GabrielOct 10, 2008 12:58 am 
Gen GennixOct 10, 2008 5:03 am 
Robert GabrielOct 10, 2008 5:37 am 
Phillip B OldhamOct 10, 2008 5:50 am 
Gen GennixOct 10, 2008 6:44 am 
Gen GennixOct 10, 2008 6:50 am 
Igor SysoevOct 10, 2008 7:05 am 
Victor IggyOct 10, 2008 4:25 pm 
Victor IggyOct 10, 2008 4:30 pm 
Jeffrey 'jf' LimOct 12, 2008 2:20 am 
Victor IggyOct 12, 2008 11:22 am 
PraveenOct 14, 2008 11:14 am 
Victor IggyOct 14, 2008 11:35 am 
PraveenOct 14, 2008 12:20 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: Nginx VS Nginx + VarnishActions...
From:Dave Cheney (da@cheney.net)
Date:Oct 9, 2008 4:54:45 pm
List:ru.sysoev.nginx

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; } } }