NginxHttpStubStatusModule Stats Incorrect?
Nathan Folkman
nathan at foursquare.com
Fri Jan 8 08:02:15 MSK 2010
Seeing something that doesn't add up after adding the following rewrite rules:
server {
listen 80;
server_name _;
underscores_in_headers on;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_connect_timeout 10;
proxy_send_timeout 30;
proxy_read_timeout 30;
charset utf-8;
if ($host ~* "www.playfoursquare.com") {
rewrite ^(.*)$ http://foursquare.com$1 permanent;
}
if ($host ~* "playfoursquare.com") {
rewrite ^(.*)$ http://foursquare.com$1 permanent;
}
if ($host ~* "www.foursquare.com") {
rewrite ^(.*)$ http://foursquare.com$1 permanent;
}
...
}
Both the "reading" and "active" stats are growing linearly since I have the change. The odd thing is that non of the other system stats agree with this (load, interrupts, etc.) Also, when I actually get the current active connections, it doesn't seem to agree:
netstat -ant | grep EST | wc -l
408
-------------- next part --------------
A non-text attachment was scrubbed...
Name: NGINX status.png
Type: image/png
Size: 43521 bytes
Desc: not available
URL: <http://nginx.org/pipermail/nginx/attachments/20100108/7a20814e/attachment-0001.png>
-------------- next part --------------
Any ideas? Thanks!
- Nathan
More information about the nginx
mailing list