Hi Ben,
Thanks for the response. I had suspicions this was the case, even though nginx error log, tornado error log or system error log weren't saying anything about this. I enabled gzip (I didn't have it enabled):
http {
# Enumerate all the Tornado servers here
upstream frontends {
}
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
keepalive_timeout 65;
proxy_read_timeout 200;
tcp_nopush on;
tcp_nodelay on;
gzip on;
gzip_min_length 1000;
gzip_proxied any;
gzip_types text/plain text/html text/css text/xml
application/x-javascript application/xml
application/atom+xml text/javascript;
# Only retry if there was a communication error, not a timeout
# on the Tornado server (to avoid propagating "queries of death"
# to all frontends)
proxy_next_upstream error;
# Load config files from the /etc/nginx/conf.d directory
include /etc/nginx/conf.d/*.conf;
}
...and added the proxy_temp_path on the location / module (and of course created the path on /tmp/nginx with proper permissions):
location / {
proxy_pass_header Server;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Scheme $scheme;
proxy_temp_path /tmp/nginx 1 2;
}
The page is now loading fine for the users, even though I don't see any files being written on /tmp/nginx. My guess at this point is that gzip is taking care of the file limit for most of the requests, and that I will see pages written in /tmp/nginx if they're much bigger.
One minor thing I'm noticing is that nginx complains about a duplicate MIME type upon startup:
2012/08/15 16:56:06 [warn] 29250#0: duplicate MIME type "text/html" in /etc/nginx/nginx.conf:73
Not sure what that is about.
Thanks!