Running siege on a 12KB css file served by nginx it actually drops a few requests. It's running off a VPS Ubuntu 10.04 install. Is this caused by my nginx configuration or just something I have to accept, using a VPS?
# nginx siege -d1 -t1M -c300 css-file
Lifting the server siege... done.
Transactions: 2307 hits
Availability: 99.87 %
Elapsed time: 59.12 secs
Data transferred: 27.40 MB
Response time: 6.43 secs
Transaction rate: 39.02 trans/sec
Throughput: 0.46 MB/sec
Concurrency: 250.95
Successful transactions: 2307
Failed transactions: 3
Longest transaction: 39.22
Shortest transaction: 0.49
nginx conf:
user www-data;
worker_processes 8;
error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;
events {
worker_connections 2048;
# multi_accept on;
accept_mutex on;
use epoll;
}
http {
include /etc/nginx/mime.types;
access_log /var/log/nginx/access.log;
default_type application/octet-stream;
sendfile on;
tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
tcp_nodelay off;
gzip on;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
gzip_proxied any;
gzip_min_length 500;
upstream app_server {
server unix:/tmp/.sock fail_timeout=0;
}
}
server {
listen 80 default;
server_name www.example.com example.com;
# added gunicorn
client_max_body_size 4G;
keepalive_timeout 5;
root /srv/static/example;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
if (!-f $request_filename) {
proxy_pass http://app_server;
break;
}
}
}